We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abe9301 commit bec38b4Copy full SHA for bec38b4
func/main.sh
@@ -1009,3 +1009,11 @@ download_file() {
1009
fi
1010
1011
}
1012
+
1013
+check_hestia_demo_mode() {
1014
+ demo_mode=$(grep DEMO_MODE /usr/local/hestia/conf/hestia.conf | cut -d '=' -f2 | sed "s|'||g")
1015
+ if [ ! -z "$demo_mode" ] && [ "$demo_mode" = "yes" ]; then
1016
+ echo "ERROR: Unable to perform operation when demo mode is enabled."
1017
+ exit 1
1018
+ fi
1019
+}
0 commit comments