Main:* fix for CMSHooks, Mod:Postfix fix openDKIM

Main:Inst Fixed failing to store storing EnabledAons/aonoption

Main:AddCMS renamed option to EnOption to avoid resusing variable

Mod:Postfix Fixed OpenDKIM usermod
This commit is contained in:
2021-02-11 15:18:17 +01:00
parent 064ceafe08
commit 638a8c1525
3 changed files with 7 additions and 7 deletions

View File

@@ -37,8 +37,8 @@ declare -n options="$webserv"Options
##----------------##
#Options var setup for enabled sub-modules
option="${SelectedOptions,,}" && option="${option// /}" && option="${option//:/ }" && option="${option//'"'}"
option="$option""$EnabledAons"
EnOption="${SelectedOptions[@],,}" && EnOption="${EnOption// /}" && EnOption="${EnOption//:/ }" && EnOption="${EnOption//'"'}"
EnOption="$EnOption""${EnabledAons[@]}"
##---------------##
# Functions #
@@ -163,7 +163,7 @@ if [ $IMODE = l ]; then
done
fi
#Cleaning options from menu
#Cleaning CMS from menu
CMS="${CMS//:}" && CMS="${CMS,,}"
##-----------------##
@@ -216,7 +216,7 @@ if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$re
fi
#Preconfiguring module For CMS
for val1 in ${option[*]}; do
for val1 in ${EnOption[*]}; do
modListed=$(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/extModules.list|grep "$val1")
#Checking
if test -z "$modListed"
@@ -296,7 +296,7 @@ fi
#Configuring Module for CMS
for val1 in ${option[*]}; do
for val1 in ${EnOption[*]}; do
modListed=$(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/extModules.list|grep "$val1")
#Checking
if test -z "$modListed"