Browse Source

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 <ludo@gnu.org>
guile-daemon
Prafulla Giri 3 years ago
committed by Ludovic Courtès
parent
commit
29ba58c0ef
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 1
      etc/guix-install.sh

1
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"

Loading…
Cancel
Save