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

Setup fixes

1. Autodetect encryption-at-rest and run the correct setup in boostrap and /usr/local/bin/mailinabox
2. Fix bug where directories in the local mod folder are improperly executed causing setup to fail
3. Add a remote_nextcloud.sh setup mod cleanup function for cleaner removal of the mod
This commit is contained in:
downtownallday
2022-10-14 09:27:24 -04:00
parent 14a4f34d39
commit e636e63862
5 changed files with 52 additions and 13 deletions

View File

@@ -253,5 +253,15 @@ remote_nextcloud_handler() {
tools/web_update
}
remote_nextcloud_handler
if [ $# -gt 0 ]; then
if [ "$1" = "cleanup" ]; then
[ -e /etc/mailinabox_mods.conf ] && \
tools/editconf.py /etc/mailinabox_mods.conf "NC_HOST="
remove_hook_handler "remote-nextcloud-mgmt-hooks.py"
else
echo "Unknown argument: $1"
exit 1
fi
else
remote_nextcloud_handler
fi