aboutsummaryrefslogtreecommitdiff
path: root/scripts/install-nix-from-closure.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install-nix-from-closure.sh')
-rw-r--r--scripts/install-nix-from-closure.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/install-nix-from-closure.sh b/scripts/install-nix-from-closure.sh
index 3e5676f41..8416fb967 100644
--- a/scripts/install-nix-from-closure.sh
+++ b/scripts/install-nix-from-closure.sh
@@ -29,8 +29,15 @@ if [ "$(uname -s)" = "Darwin" ]; then
exit 1
fi
- printf '\e[1;31mSwitching to the Multi-User Darwin Installer\e[0m\n'
- exec "$self/install-darwin-multi-user"
+ printf '\e[1;31mSwitching to the Daemon-based Installer\e[0m\n'
+ exec "$self/install-multi-user"
+ exit 0
+fi
+
+# Linux & Systemd support
+if [ "$(uname -s)" = "Linux" ] && [ -e /run/systemd/system ]; then
+ printf '\e[1;31mSwitching to the Daemon-based Installer\e[0m\n'
+ exec "$self/install-multi-user"
exit 0
fi