[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: etc: Enable mount unit only if it exists.
From: |
guix-commits |
Subject: |
02/02: etc: Enable mount unit only if it exists. |
Date: |
Tue, 14 Jul 2020 07:18:33 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit d6f303d4e5e80c4e46f131f5bac1f6be5cda433e
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Fri Jul 10 13:25:26 2020 +0200
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.
---
etc/guix-install.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index bf15aed..54bd813 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -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)