GNU bug report logs -
#30728
guix-install.sh doesn't work if run with "sudo"
Previous Next
Full log
Message #23 received at 30728 <at> debbugs.gnu.org (full text, mbox):
Hi Tatiana,
Tatiana Sholokhova <tanja201396 <at> gmail.com> writes:
> Hello! My name is Tatiana.
>
> I have installed guix for the first time and noticed that the installation
> script at
> https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-install.sh did not
> work for me. So, I had to make some modifications.
>
> There was a problem with the path to root user home directory. Below I
> provide diff output for original script and my modified script.
Thank you for working on this!
> 266c266,267
> < ln -sf /var/guix/profiles/per-user/root/guix-profile
> /root/.guix-profile
> ---
>> ln -sf /var/guix/profiles/per-user/root/guix-profile \
>> ~root/.guix-profile
> 268c269
> < GUIX_PROFILE="/root/.guix-profile"
> ---
>> GUIX_PROFILE="${HOME}/.guix-profile"
>
> These changes allowed me to install guix via the script.
As I said to Chris (Cc'ed), I don't think it's a good idea to install
Guix in root's home directory. Instead, we should probably honor the
USER and HOME environment variables, so that the command can be run as a
non-root user (with sudo) in a consistent way. What do you think?
You can follow the discussion there:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30728. Every email sent
to 30728 <at> debbugs.gnu.org will appear there.
Clément
This bug report was last modified 7 years and 55 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.