Skip to content

Commit

Permalink
quick-setup: allow running script without setup-sshd function (#2381)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
jklare authored Jan 8, 2025
1 parent 41e37ab commit 770afc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/quick-setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
DISTRO_TYPE=""
SETUP_SSHD="true"

# Docker version that will be installed by this install script.
DOCKER_VERSION="26.1.4"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 770afc8

Please sign in to comment.