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-09-09 14:39:24 +0300
committerGitHub <noreply@github.com>2020-09-09 14:39:24 +0300
commitaba232642fdae7c5e47d6fce95d26d143eb64aad (patch)
tree58dfe77aeeaa804865ff1c843b9b70b7ed783d95 /menu/nextcloud_configuration.sh
parentabc39f3a4ecd3fd7b9dd985e1d45b0fef1e7d381 (diff)
create a STARTUP_SWITCH (#1427)
Diffstat (limited to 'menu/nextcloud_configuration.sh')
-rw-r--r--menu/nextcloud_configuration.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/menu/nextcloud_configuration.sh b/menu/nextcloud_configuration.sh
index 899c2d77..c43ff80d 100644
--- a/menu/nextcloud_configuration.sh
+++ b/menu/nextcloud_configuration.sh
@@ -18,6 +18,14 @@ debug_mode
# Must be root
root_check
+# Set the startup switch
+if [ -f "$SCRIPTS/nextcloud-startup-script.sh" ]
+then
+ STARTUP_SWITCH="ON"
+else
+ STARTUP_SWITCH="OFF"
+fi
+
# Configure Nextcloud
choice=$(whiptail --title "$TITLE" --checklist "Which settings do you want to configure?\n$CHECKLIST_GUIDE\n$MENU_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
"CookieLifetime" "(Configure forced logout timeout for users using the web GUI)" OFF \