mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
install: try to fix install session
This commit is contained in:
1 file changed
+8
@@ -12,6 +12,14 @@ echo "Executing Hydro install script v3.0.1"
|
|||||||
echo "Hydro includes system telemetry,
|
echo "Hydro includes system telemetry,
|
||||||
which helps developers figure out the most commonly used operating system and platform.
|
which helps developers figure out the most commonly used operating system and platform.
|
||||||
To disable this feature, checkout our sourcecode."
|
To disable this feature, checkout our sourcecode."
|
||||||
|
# Sessions started with `su` will not have updated $USER, need to manually fix everything
|
||||||
|
actual_user=$(whoami)
|
||||||
|
if [ "$actual_user" != "$USER" ]; then
|
||||||
|
export USER=root
|
||||||
|
export LOGNAME=root
|
||||||
|
export HOME=/root
|
||||||
|
export PWD=/root
|
||||||
|
fi
|
||||||
mkdir -p /data/db /data/file ~/.hydro
|
mkdir -p /data/db /data/file ~/.hydro
|
||||||
bash <(curl https://hydro.ac/nix.sh)
|
bash <(curl https://hydro.ac/nix.sh)
|
||||||
export PATH=$HOME/.nix-profile/bin:$PATH
|
export PATH=$HOME/.nix-profile/bin:$PATH
|
||||||
|
|||||||
Reference in new issue
Block a user