Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorszaimen <szaimen@e.mail.de>2020-10-02 21:08:43 +0300
committerGitHub <noreply@github.com>2020-10-02 21:08:43 +0300
commit476ea4e96a65dd37a0b0da9a9335c793d6fd33ee (patch)
treea485983ffb5838ec7be574db7c06e5795145a2e4 /nextcloud_install_production.sh
parentf732671d5b65ccbc291fcf7eadd3508905e0780a (diff)
Disable hibernation (#1506)
Diffstat (limited to 'nextcloud_install_production.sh')
-rw-r--r--nextcloud_install_production.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh
index 0fc9c41b..c2ae366e 100644
--- a/nextcloud_install_production.sh
+++ b/nextcloud_install_production.sh
@@ -845,6 +845,9 @@ then
check_command sed -i "s|VM|Home/SME Server|g" $SCRIPTS/nextcloud-startup-script.sh
fi
+# Disable hibernation
+systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
+
# Reboot
msg_box "Installation almost done, system will reboot when you hit OK.