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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user