Dont add daemon option if no-daemon is supplied

This commit is contained in:
Carlos D 2022-12-16 13:43:21 +11:00
parent 11f4ad19be
commit d0ac6617f6
No known key found for this signature in database
GPG Key ID: E2288864CCEA83F3

View File

@ -37,7 +37,7 @@ installer_options=(
) )
# only use the nix-daemon settings if on darwin (which get ignored) or systemd is supported # 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+=( installer_options+=(
--daemon --daemon
--daemon-user-count "$(python3 -c 'import multiprocessing as mp; print(mp.cpu_count() * 2)')" --daemon-user-count "$(python3 -c 'import multiprocessing as mp; print(mp.cpu_count() * 2)')"