We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0315e4c commit 965da58Copy full SHA for 965da58
1 file changed
virtualmin-install.sh
@@ -494,10 +494,9 @@ if [ -n "$test_connection_type" ]; then
494
exit 0
495
fi
496
497
-# Force setup mode, if script name is `setup-repos.sh` as it
498
-# is used by Virtualmin API, to make sure users won't run an
499
-# actual install script under any circumstances
500
-if [ "$script_name" = "setup-repos.sh" ]; then
+# Force setup mode when VIRTUALMIN_SETUP_ONLY is set, ensuring users will not
+# run an actual install script under any circumstances
+if [ "${VIRTUALMIN_SETUP_ONLY:-}" = "1" ]; then
501
setup_only=1
502
mode='setup'
503
unstable='unstable'
0 commit comments