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:
10
AppendCMS.sh
10
AppendCMS.sh
@@ -37,8 +37,8 @@ declare -n options="$webserv"Options
|
|||||||
##----------------##
|
##----------------##
|
||||||
|
|
||||||
#Options var setup for enabled sub-modules
|
#Options var setup for enabled sub-modules
|
||||||
option="${SelectedOptions,,}" && option="${option// /}" && option="${option//:/ }" && option="${option//'"'}"
|
EnOption="${SelectedOptions[@],,}" && EnOption="${EnOption// /}" && EnOption="${EnOption//:/ }" && EnOption="${EnOption//'"'}"
|
||||||
option="$option""$EnabledAons"
|
EnOption="$EnOption""${EnabledAons[@]}"
|
||||||
|
|
||||||
##---------------##
|
##---------------##
|
||||||
# Functions #
|
# Functions #
|
||||||
@@ -163,7 +163,7 @@ if [ $IMODE = l ]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Cleaning options from menu
|
#Cleaning CMS from menu
|
||||||
CMS="${CMS//:}" && CMS="${CMS,,}"
|
CMS="${CMS//:}" && CMS="${CMS,,}"
|
||||||
|
|
||||||
##-----------------##
|
##-----------------##
|
||||||
@@ -216,7 +216,7 @@ if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$re
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#Preconfiguring module For CMS
|
#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")
|
modListed=$(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/extModules.list|grep "$val1")
|
||||||
#Checking
|
#Checking
|
||||||
if test -z "$modListed"
|
if test -z "$modListed"
|
||||||
@@ -296,7 +296,7 @@ fi
|
|||||||
|
|
||||||
#Configuring Module for CMS
|
#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")
|
modListed=$(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/extModules.list|grep "$val1")
|
||||||
#Checking
|
#Checking
|
||||||
if test -z "$modListed"
|
if test -z "$modListed"
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ EOF
|
|||||||
# OpenDKIM #
|
# OpenDKIM #
|
||||||
##--------------##
|
##--------------##
|
||||||
|
|
||||||
usermod –a –G opendkim postfix
|
usermod -aG opendkim postfix
|
||||||
rm -rf /etc/opendkim.d
|
rm -rf /etc/opendkim.d
|
||||||
mkdir -p /etc/opendkim.d/keys
|
mkdir -p /etc/opendkim.d/keys
|
||||||
chown opendkim:opendkim /etc/opendkim.d/keys -R
|
chown opendkim:opendkim /etc/opendkim.d/keys -R
|
||||||
|
|||||||
@@ -442,7 +442,7 @@ if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$re
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#saving enabled Allways on modules
|
#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
|
#Combining selected option with always-on options
|
||||||
option="$option""$aonoption"
|
option="$option""$aonoption"
|
||||||
|
|||||||
Reference in New Issue
Block a user