Main:All Added per CMS config for sub-modules

If CMS is installed and a sub-module requires to be configured per CMS,
this is handeled by new 'CMSHook-(pre)conf.sh'
this has been added to Dev Docs

Updated postfix sub-module to use new CMSHook
Added 'itype' var for detection of install script type
Now also storeing  'Allways on modules' in installer as EnabledAons
This commit is contained in:
2021-02-10 15:23:22 +01:00
parent 282851f1ed
commit 81b7e93678
6 changed files with 108 additions and 18 deletions

View File

@@ -85,7 +85,7 @@ systemctl start postfix opendkim
systemctl enable postfix opendkim
#if using Append module run for existing cms/sites
if [ ! -z "${postfixappended}" ]; then
if [ "$itype" = "AddMod" ]; then
for file in /etc/ICTM/sites/*; do
sitename="${file##*/}"
domain=${sitename//_/.}

View File

@@ -1,7 +1,3 @@
if [ -z "${domain}" ]; then
postfixappended=1
fi
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then
debconf-set-selections <<< "postfix postfix/mailname string $hostname"
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"