From fa21400a98b7aa80cd82964483de7685922f5515 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 15 Oct 2023 01:16:41 -0400 Subject: [PATCH] Create tasmoadmin-install.sh --- install/tasmoadmin-install.sh | 64 +++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 install/tasmoadmin-install.sh diff --git a/install/tasmoadmin-install.sh b/install/tasmoadmin-install.sh new file mode 100644 index 00000000..0b65b9ce --- /dev/null +++ b/install/tasmoadmin-install.sh @@ -0,0 +1,64 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2023 tteck +# Author: tteck (tteckster) +# License: MIT +# https://github.com/tteck/Proxmox/raw/main/LICENSE + +source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt-get install -y curl +$STD apt-get install -y sudo +$STD apt-get install -y mc +$STD apt-get install -y apache2 +$STD apt-get install -y php8.2 +$STD apt-get install -y libapache2-mod-php +$STD apt-get install -y php8.2-curl +$STD apt-get install -y php8.2-zip +$STD apt-get install -y php8.2-mbstring +$STD apt-get install -y php8.2-xml +$STD apt-get install -y git +msg_ok "Installed Dependencies" + +msg_info "Installing TasmoAdmin" +wget -q https://github.com/TasmoAdmin/TasmoAdmin/releases/download/v3.1.1/tasmoadmin_v3.1.1.tar.gz +tar -xzf tasmoadmin_v3.1.1.tar.gz -C /var/www/ +rm -rf tasmoadmin_v3.1.1.tar.gz /etc/php/8.2/apache2/conf.d/10-opcache.ini +chown -R www-data:www-data /var/www/tasmoadmin +chmod 777 /var/www/tasmoadmin/tmp /var/www/tasmoadmin/data +cat </etc/apache2/sites-available/tasmoadmin.conf + + ServerName tasmoadmin + ServerAdmin webmaster@localhost + DocumentRoot /var/www/tasmoadmin + + AllowOverride All + Order allow,deny + allow from all + + ErrorLog /var/log/apache2/error.log + LogLevel warn + CustomLog /var/log/apache2/access.log combined + ServerSignature On + +EOF +sed -i '6iListen 9999' /etc/apache2/ports.conf +$STD a2ensite tasmoadmin +$STD a2enmod rewrite +systemctl reload apache2 +systemctl restart apache2 +msg_ok "Installed TasmoAdmin" +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get autoremove +$STD apt-get autoclean +msg_ok "Cleaned"