[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/09: guix-install.sh: Test if gnu-store.mount exists before removing t
From: |
guix-commits |
Subject: |
03/09: guix-install.sh: Test if gnu-store.mount exists before removing the unit |
Date: |
Thu, 14 Nov 2024 09:54:23 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit e02b3b0a666ed541b4393802129c1d1660ca0df5
Author: David Boilleau <david_boilleau@gmx.fr>
AuthorDate: Fri Nov 8 15:10:22 2024 +0100
guix-install.sh: Test if gnu-store.mount exists before removing the unit
The file /etc/systemd/system/gnu-store.mount has permissions 664, since the
`install_unit()` function installed it so. So the test prior to removing the
matching Systemd unit should not be wether this file is executable,
otherwise
it will always fail. The relevant test is on the file existence.
* etc/guix-install.sh (sys_delete_guix_daemon): Test if gnu-store.mount file
exists rather than if it is executable.
Change-Id: Ic7cc186618b0b92fccf49a3b27805756a9126b89
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
etc/guix-install.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 9d9c294d75..e97190d964 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -576,7 +576,7 @@ sys_delete_guix_daemon()
_msg "${INF}removing guix-daemon"
rm -f /etc/systemd/system/guix-daemon.service
- if [ -x /etc/systemd/system/gnu-store.mount ]; then
+ if [ -f /etc/systemd/system/gnu-store.mount ]; then
_msg "${INF}disabling gnu-store.mount"
systemctl disable gnu-store.mount
_msg "${INF}stopping gnu-store.mount"
- branch master updated (b654587cd9 -> abc3eb3319), guix-commits, 2024/11/14
- 04/09: guix-install.sh: Replace `ROOT_HOME` with `~root`, guix-commits, 2024/11/14
- 07/09: gnu: postgresql-10: Replace deprecated dependency., guix-commits, 2024/11/14
- 02/09: gnu: guix-jupyter: Update to 0.3.0., guix-commits, 2024/11/14
- 03/09: guix-install.sh: Test if gnu-store.mount exists before removing the unit,
guix-commits <=
- 01/09: describe: Add hyperlinks for codeberg.org commits., guix-commits, 2024/11/14
- 05/09: guix-install.sh: Run the uninstall even if already partially done, guix-commits, 2024/11/14
- 08/09: gnu: mumble: Update to 1.5.634, fix aarch64 build., guix-commits, 2024/11/14
- 09/09: import: hackage: Support updating to a specific version., guix-commits, 2024/11/14
- 06/09: gnu: python-crontab: Fix failing tests, guix-commits, 2024/11/14