1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-20 18:27:23 +01:00

setup: backup and restore setup mods

This commit is contained in:
downtownallday
2022-11-20 09:08:50 -05:00
parent b810417676
commit 36b5a31e82
3 changed files with 83 additions and 12 deletions

View File

@@ -172,18 +172,8 @@ certbot register --register-unsafely-without-email --agree-tos --config-dir $STO
fi
#
# Run setup mods
#
if [ -d "$LOCAL_MODS_DIR" ]; then
for mod in $(ls "$LOCAL_MODS_DIR" | grep -v '~$'); do
mod_path="$LOCAL_MODS_DIR/$mod"
if [ -f "$mod_path" -a -x "$mod_path" ]; then
echo ""
echo "Running mod: $mod_path"
"$mod_path"
fi
done
fi
# Setup mods
source setup/setupmods.sh
# Done.
echo