Skip to content

Commit 9aa53d9

Browse files
committed
fix: Changed to No-AutoStart and fixed the logic and removed outdated comments
Signed-off-by: Gajesh Bhat <[email protected]>
1 parent 40f45c0 commit 9aa53d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ start_docker_daemon() {
299299
# Use systemctl if available (for systemd-based systems)
300300
if command_exists systemctl; then
301301
is_dry_run || >&2 echo "Using systemd to manage Docker service"
302-
# Use --now to start and enable simultaneously when systemd is running
303302
if (
304303
is_dry_run || set -x
305304
$sh_c systemctl enable --now docker.service 2>/dev/null
@@ -731,7 +730,7 @@ do_install() {
731730
fi
732731
$sh_c "$pkg_manager $pkg_manager_flags install $pkgs"
733732
)
734-
if [ "$AUTOSTART" = "1" ]; then
733+
if [ "$NO_AUTOSTART" != "1" ]; then
735734
start_docker_daemon
736735
fi
737736
echo_docker_as_nonroot

0 commit comments

Comments
 (0)