Fixed FirstSetup and upgraded Alpine to 3.16 version

"FirstSetup": now installes go form official website

CT ElkarbackupALP: New use old stable repo(3.15) for php7 since is is obeleted in 3.16

CT HeimdallCT: Switched to php8 and when git cloing using 2.x branch instead of master
This commit is contained in:
2022-07-01 00:45:21 +02:00
parent 66e16943bc
commit 6c182a2ec7
6 changed files with 48 additions and 33 deletions

View File

@@ -1,22 +1,18 @@
#!/bin/ash
#Install php 7.3
echo "@phphernandev https://php.hernandev.com/v3.11/php-7.3" >> /etc/apk/repositories
curl -L https://php.hernandev.com/key/php-alpine.rsa.pub -o /etc/apk/keys/php-alpine.rsa.pub
apk add php7@phphernandev php7-ctype@phphernandev php7-curl@phphernandev php7-pdo_sqlite@phphernandev php7-mbstring@phphernandev php7-json@phphernandev php7-zip@phphernandev php7-xml@phphernandev php7-fpm@phphernandev php7-session@phphernandev php7-openssl@phphernandev
#Configure Nginx
rm -rf /etc/nginx/conf.d
mv /opt/Setup/Configs/nginx.conf /etc/nginx/nginx.conf
#Configure Php-Fpm
rm -rf /etc/php7/php-fpm.d/*
mv /opt/Setup/Configs/php.conf /etc/php7/php-fpm.d/heimdall.conf
mv /opt/Setup/Configs/phpTimezone.ini /etc/php7/conf.d/04_date_timezone.ini
rm -rf /etc/php8/php-fpm.d/*
mv /opt/Setup/Configs/php.conf /etc/php8/php-fpm.d/heimdall.conf
mv /opt/Setup/Configs/phpTimezone.ini /etc/php8/conf.d/04_date_timezone.ini
#Install Heimdall
git clone https://github.com/linuxserver/Heimdall.git /opt/heimdall
git clone -b 2.x https://github.com/linuxserver/Heimdall.git /opt/heimdall
chown -R nginx:nginx /opt/heimdall
#Enable services on boot
rc-update add nginx
rc-update add php-fpm7
rc-update add php-fpm8