Install yay without access to $USER variable?
#1938
-
|
I'm trying to configure a system-wide Distrobox configuration in init_hooks="export USER=<your_user>"
init_hooks="cd ~/Downloads"
init_hooks="git clone https://aur.archlinux.org/yay-bin.git"
init_hooks="sudo chown -R $USER:$USER yay-bin"
init_hooks="sudo chmod -R 777 yay-bin"
init_hooks="sudo -u $USER sh -c "cd yay-bin && makepkg -si --noconfirm""
init_hooks="rm -r yay-bin"works, but I don't have knowledge of who the user is. Is there a workaround? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This doesn't appear to be possible; I was able to get a Toolbx built from a Containerfile in this manner, but you can't mount the installing user's In short, best you can do is build an Arch container and provide a script or binary to install |
Beta Was this translation helpful? Give feedback.
This doesn't appear to be possible; I was able to get a Toolbx built from a Containerfile in this manner, but you can't mount the installing user's
/homedirectory so it never mounts; I suspect the same would happen with Distrobox.In short, best you can do is build an Arch container and provide a script or binary to install
yay.