[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/05: guix-install.sh: Create /etc/profile.d if it does not exist
From: |
guix-commits |
Subject: |
04/05: guix-install.sh: Create /etc/profile.d if it does not exist |
Date: |
Sun, 26 Jan 2020 17:24:18 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 29ba58c0ef3c1e4a6154a133203c9c09d138fd32
Author: Prafulla Giri <address@hidden>
AuthorDate: Tue Jan 21 12:34:10 2020 +0545
guix-install.sh: Create /etc/profile.d if it does not exist
* etc/guix-install.sh (sys_create_init_profile): Add code to create
/etc/profile.d if it somehow does not exist; the function still carries
on because it is possible that /etc/profile is still configured to read
the *.sh files from /etc/profile.d, if they exist.
Signed-off-by: Ludovic Courtès <address@hidden>
---
etc/guix-install.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index ff97c78..0e677c2 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -395,6 +395,7 @@ sys_authorize_build_farms()
sys_create_init_profile()
{ # Create /etc/profile.d/guix.sh for better desktop integration
+ [ -d "/etc/profile.d" ] || mkdir /etc/profile.d # Just in case
cat <<"EOF" > /etc/profile.d/guix.sh
# _GUIX_PROFILE: `guix pull` profile
_GUIX_PROFILE="$HOME/.config/guix/current"