Files
ProxmoxVE/install/tasmoadmin-install.sh

58 lines
1.5 KiB
Bash
Raw Normal View History

2023-10-15 01:16:41 -04:00
#!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck
2023-10-15 01:16:41 -04:00
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/TasmoAdmin/TasmoAdmin
2023-10-15 01:16:41 -04:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2023-10-15 01:16:41 -04:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
2025-10-09 19:43:23 +02:00
$STD apt install -y git
2023-10-15 01:16:41 -04:00
msg_ok "Installed Dependencies"
2025-08-22 14:07:13 +02:00
PHP_VERSION="8.4" PHP_APACHE="YES" setup_php
fetch_and_deploy_gh_release "tasmoadmin" "TasmoAdmin/TasmoAdmin" "prebuild" "latest" "/var/www/tasmoadmin" "tasmoadmin_v*.tar.gz"
msg_info "Configuring TasmoAdmin"
rm -rf /etc/php/8.4/apache2/conf.d/10-opcache.ini
2023-10-15 01:16:41 -04:00
chown -R www-data:www-data /var/www/tasmoadmin
chmod 777 /var/www/tasmoadmin/tmp /var/www/tasmoadmin/data
cat <<EOF >/etc/apache2/sites-available/tasmoadmin.conf
<VirtualHost *:9999>
ServerName tasmoadmin
ServerAdmin webmaster@localhost
DocumentRoot /var/www/tasmoadmin
<Directory /var/www/tasmoadmin>
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
EOF
sed -i '6iListen 9999' /etc/apache2/ports.conf
$STD a2ensite tasmoadmin
$STD a2enmod rewrite
systemctl reload apache2
systemctl restart apache2
2025-08-22 14:07:13 +02:00
msg_ok "Configured TasmoAdmin"
2023-10-15 01:16:41 -04:00
motd_ssh
customize
msg_info "Cleaning up"
2025-10-09 19:43:23 +02:00
$STD apt -y autoremove
$STD apt -y autoclean
$STD apt -y clean
2023-10-15 01:16:41 -04:00
msg_ok "Cleaned"