From c37e28cab36071e1fbabcef8228d9d6a74fc1d0f Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 19 Sep 2024 22:29:34 +0200 Subject: [PATCH] Keep all variables during installation --- scripts/Common/OS/install.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Common/OS/install.fish b/scripts/Common/OS/install.fish index 35b7d33e..11c6eabd 100755 --- a/scripts/Common/OS/install.fish +++ b/scripts/Common/OS/install.fish @@ -24,7 +24,7 @@ if [ (id -u) -eq 0 ] echo "$name ALL=(ALL:ALL) NOPASSWD: ALL" end > "$sudoConfig" - and sudo --preserve-env="CONFIG_NAME" --user "$name" "$INSTALLER_SCRIPT" + and sudo --preserve-env --set-home --user "$name" "$INSTALLER_SCRIPT" rm "$sudoConfig" userdel -rf "$name" else