From 770afc85a4d507c13aa4e9f6ace3f5485a1ea934 Mon Sep 17 00:00:00 2001 From: Jan Klare Date: Wed, 8 Jan 2025 12:15:59 +0000 Subject: [PATCH] quick-setup: allow running script without setup-sshd function (#2381) * although the setup-sshd function seems useful for certain cases, it is generally unrelated to what the rest of the script does and strictly not needed for most people * to allow people to run the script without also modifying the sshd config on their servers (which might be considered a security violation in some contexts), this patch introduces an additional environment variable "SETUP_SSH", which can be set to "false" (or any other value than "true") to disable running the setup-sshd function * to not break backward compatibility and keep the current functionality the same, the default value for this variable is set to "true" Signed-off-by: Jan Klare --- utils/quick-setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/quick-setup.sh b/utils/quick-setup.sh index 7f6b3e718..207a3d128 100644 --- a/utils/quick-setup.sh +++ b/utils/quick-setup.sh @@ -1,4 +1,5 @@ DISTRO_TYPE="" +SETUP_SSHD="true" # Docker version that will be installed by this install script. DOCKER_VERSION="26.1.4" @@ -262,7 +263,9 @@ function all { # check OS to determine distro check_os - setup-sshd + if [ "${SETUP_SSHD}" = "true" ]; then + setup-sshd + fi install-docker post-install-docker