From d0ac6617f6aff03fc3b32d42cada10512b308f32 Mon Sep 17 00:00:00 2001 From: Carlos D Date: Fri, 16 Dec 2022 13:43:21 +1100 Subject: [PATCH] Dont add daemon option if no-daemon is supplied --- install-nix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-nix.sh b/install-nix.sh index 17b0980..482f192 100755 --- a/install-nix.sh +++ b/install-nix.sh @@ -37,7 +37,7 @@ installer_options=( ) # only use the nix-daemon settings if on darwin (which get ignored) or systemd is supported -if [[ $OSTYPE =~ darwin || -e /run/systemd/system ]]; then +if [[ (! $INPUT_INSTALL_OPTIONS =~ "--no-daemon") && ($OSTYPE =~ darwin || -e /run/systemd/system) ]]; then installer_options+=( --daemon --daemon-user-count "$(python3 -c 'import multiprocessing as mp; print(mp.cpu_count() * 2)')"