Update references to new git location
Changed Web-V2 config location to /etc/WebV2
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
#sysCheck
|
||||
if [ ! -f "/etc/ICTM/selopts.list" ] || [ ! -f "/etc/ICTM/mainvar.list" ] ; then echo 'This system is not yet setup, please run the main installer first' && exit ; fi
|
||||
if [ ! -f "/etc/WebV2/selopts.list" ] || [ ! -f "/etc/WebV2/mainvar.list" ] ; then echo 'This system is not yet setup, please run the main installer first' && exit ; fi
|
||||
rm /tmp/pkg.list
|
||||
#Getting variables
|
||||
source /etc/ICTM/mainvar.list
|
||||
source /etc/WebV2/mainvar.list
|
||||
if [ -z $shortdist ] ; then source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/Scripts/MicroOSDetect.sh) ; fi
|
||||
if [ ! -f "/etc/ICTM/phpvar.list" ] ; then bash <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/Scripts/GeneratePhplist.sh) ; fi
|
||||
source /etc/ICTM/phpvar.list
|
||||
if [ ! -f "/etc/WebV2/phpvar.list" ] ; then bash <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/Scripts/GeneratePhplist.sh) ; fi
|
||||
source /etc/WebV2/phpvar.list
|
||||
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ]; then
|
||||
# Ubuntu Php variable
|
||||
apt update
|
||||
if ! ls /var/lib/apt/lists/ppa.launchpad.net_ondrej_php*_Packages > /dev/null 2>&1 ; then echo 'PHP(Sury) repo not installed' && echo 'Install using: curl --retry 7 --retry-delay 5 -s https://git.ictmaatwerk.com/VPS-scripts/General/raw/branch/Main/Setup-Repo.sh |repo=php bash' && exit ; fi
|
||||
if ! ls /var/lib/apt/lists/ppa.launchpad.net_ondrej_php*_Packages > /dev/null 2>&1 ; then echo 'PHP(Sury) repo not installed' && echo 'Install using: curl --retry 7 --retry-delay 5 -s https://git.bprieshof.nl/Work/PKGRepoSetup/raw/branch/Main/Setup-Repo.sh |repo=php bash' && exit ; fi
|
||||
RepoVersion=`grep -h '^Package: php' /var/lib/apt/lists/ppa.launchpad.net_ondrej_php*_Packages | cut -f1 -d"-" | sort | tail -1| sed -e 's/Package: php//'`
|
||||
elif [ "$shortdist" = "deb10" ]|| [ "$shortdist" = "deb11" ]; then
|
||||
# Debian Php variable
|
||||
apt update
|
||||
if ! ls /var/lib/apt/lists/packages.sury.org_php*_Packages > /dev/null 2>&1 ; then echo 'PHP(Sury) repo not installed' && echo 'Install using: curl --retry 7 --retry-delay 5 -s https://git.ictmaatwerk.com/VPS-scripts/General/raw/branch/Main/Setup-Repo.sh |repo=php bash' && exit ; fi
|
||||
if ! ls /var/lib/apt/lists/packages.sury.org_php*_Packages > /dev/null 2>&1 ; then echo 'PHP(Sury) repo not installed' && echo 'Install using: curl --retry 7 --retry-delay 5 -s https://git.bprieshof.nl/Work/PKGRepoSetup/raw/branch/Main/Setup-Repo.sh |repo=php bash' && exit ; fi
|
||||
RepoVersion=`grep -h '^Package: php' /var/lib/apt/lists/packages.sury.org*_Packages| cut -f1 -d"-" | sort | tail -1| sed -e 's/Package: php//'`
|
||||
elif [ "$shortdist" = "el8" ]; then
|
||||
dnf check-update --refresh
|
||||
@@ -126,13 +126,13 @@ systemctl start $newphpFPMService
|
||||
systemctl enable $newphpFPMService
|
||||
|
||||
|
||||
sed -i "/phpver/c\phpver=\"$newphpver\"" /etc/ICTM/mainvar.list
|
||||
sed -i "/phpver/c\phpver=\"$newphpver\"" /etc/WebV2/mainvar.list
|
||||
|
||||
mv /etc/ICTM/phpvar.list /etc/ICTM/phpvar"$phpver".list
|
||||
mv /etc/WebV2/phpvar.list /etc/WebV2/phpvar"$phpver".list
|
||||
for storeme in newphpPoolDir newphpPkgName newphpMainConf newphpFPMService; do
|
||||
declare -p $storeme | cut -d ' ' -f 3- >> /etc/ICTM/phpvar.list
|
||||
declare -p $storeme | cut -d ' ' -f 3- >> /etc/WebV2/phpvar.list
|
||||
done
|
||||
sed -i 's/new//' /etc/ICTM/phpvar.list
|
||||
sed -i 's/new//' /etc/WebV2/phpvar.list
|
||||
|
||||
if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$repo"/raw/"$branchtype"/"$branch"/CoreModules/"$webserv"/phpupdate-handeler.sh; then
|
||||
source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CoreModules/"$webserv"/phpupdate-handeler.sh)
|
||||
|
||||
Reference in New Issue
Block a user