mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-10 09:24:38 +00:00
Refactor (#7080)
This commit is contained in:
parent
cdc546f879
commit
41e8958ab9
1 changed files with 7 additions and 12 deletions
|
@ -14,20 +14,14 @@ network_check
|
|||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$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"
|
||||
curl -fsSL "https://github.com/TasmoAdmin/TasmoAdmin/releases/download/v3.1.1/tasmoadmin_v3.1.1.tar.gz" -o 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
|
||||
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
|
||||
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
|
||||
|
@ -51,7 +45,8 @@ $STD a2ensite tasmoadmin
|
|||
$STD a2enmod rewrite
|
||||
systemctl reload apache2
|
||||
systemctl restart apache2
|
||||
msg_ok "Installed TasmoAdmin"
|
||||
msg_ok "Configured TasmoAdmin"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue