diff --git a/AppendCMS.sh b/AppendCMS.sh index 7afe15e..b9385f9 100644 --- a/AppendCMS.sh +++ b/AppendCMS.sh @@ -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" diff --git a/SubModules/postfix/conf.sh b/SubModules/postfix/conf.sh index 5af7539..408f7d6 100644 --- a/SubModules/postfix/conf.sh +++ b/SubModules/postfix/conf.sh @@ -36,7 +36,7 @@ EOF # OpenDKIM # ##--------------## -usermod –a –G opendkim postfix +usermod -aG opendkim postfix rm -rf /etc/opendkim.d mkdir -p /etc/opendkim.d/keys chown opendkim:opendkim /etc/opendkim.d/keys -R diff --git a/installer.sh b/installer.sh index 2df823d..ad2fc3b 100644 --- a/installer.sh +++ b/installer.sh @@ -442,7 +442,7 @@ if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$re fi #saving enabled Allways on modules -echo 'EnabledAons=('$aonoption')' > /etc/ICTM/selopts.list +echo 'EnabledAons=('$aonoption')' >> /etc/ICTM/selopts.list #Combining selected option with always-on options option="$option""$aonoption"