diff --git a/nextcloud_update.sh b/nextcloud_update.sh index 23f8472a6d..22aa0c457f 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -339,6 +339,11 @@ then # Hold veracrypt if installed since unmounting all drives, updating and mounting them again is not feasible # If you desperately need the update, you can do so manually apt-mark hold veracrypt + + # Also do not restart services automatically when running apt-get dist-upgrade later on + # As this otherwise restarts the veracrypt automount service and unmounts all drives unexpectedly + export NEEDRESTART_MODE=l + export NEEDRESTART_SUSPEND=1 fi # Enter maintenance:mode