Prepared php updater for EL

This commit is contained in:
2020-12-17 15:14:18 +01:00
parent 9115a36148
commit d889f248e6
7 changed files with 89 additions and 9 deletions

View File

@@ -1,4 +1,7 @@
for f in /etc/apache2/sites-available/*; do
if [ ! -f "/etc/ICTM/apachevar.list" ] ; then bash <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/Scripts/GenerateApacheList.sh) ; fi
source /etc/ICTM/apachevar.list
for f in $apacheConfDir/sites-available/*; do
if [ $IMODE = n ] && [ $PhpPurge = 0 ]; then
if (whiptail --title "Update apache config ?" --yesno "Update php version in apache site: ${f##*/} ?" 8 78); then
sed -i "s/$phpver/$newphpver/" $f