Skip to content

Commit 3953465

Browse files
committed
Fix dockerrootless env update
1 parent 2875ea3 commit 3953465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/localscript/update-env-new-site-variables.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ local_update_env_new_site_variables()
7979
[[ ! $ARG_DEFAULT_HOST == "" ]] && run_function env_update_variable $LOCAL_FILE_PATH "DEFAULT_HOST" "${ARG_DEFAULT_HOST}"
8080

8181
# Docker rootless support
82-
run_function env_update_variable $LOCAL_FILE_PATH "DOCKER_HOST_ROOTLESS_PATH" "$DOCKER_HOST_ROOTLESS_PATH"
82+
[[ "$USE_DOCKER_ROOTLESS" == true ]] && run_function env_update_variable $LOCAL_FILE_PATH "DOCKER_HOST_ROOTLESS_PATH" "$DOCKER_HOST_ROOTLESS_PATH"
8383

8484
return 0
8585
}

0 commit comments

Comments
 (0)