mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-08-06 17:31:32 +02:00
etc: Enable mount unit only if it exists.
* etc/guix-install.sh (sys_enable_guix_daemon): Enable gnu-store.mount only if it was actually installed. Reported by peanutbutterandc on #guix.
This commit is contained in:
+4
-2
@@ -350,6 +350,8 @@ sys_enable_guix_daemon()
|
||||
cp "${ROOT_HOME}/.config/guix/current/lib/systemd/system/gnu-store.mount" \
|
||||
/etc/systemd/system/;
|
||||
chmod 664 /etc/systemd/system/gnu-store.mount;
|
||||
systemctl daemon-reload &&
|
||||
systemctl enable gnu-store.mount;
|
||||
fi
|
||||
|
||||
cp "${ROOT_HOME}/.config/guix/current/lib/systemd/system/guix-daemon.service" \
|
||||
@@ -367,8 +369,8 @@ sys_enable_guix_daemon()
|
||||
fi;
|
||||
|
||||
systemctl daemon-reload &&
|
||||
systemctl start gnu-store.mount guix-daemon &&
|
||||
systemctl enable gnu-store.mount guix-daemon; } &&
|
||||
systemctl enable guix-daemon &&
|
||||
systemctl start guix-daemon; } &&
|
||||
_msg "${PAS}enabled Guix daemon via systemd"
|
||||
;;
|
||||
sysv-init)
|
||||
|
||||
Reference in New Issue
Block a user