Keep all variables during installation
This commit is contained in:
parent
c30a467138
commit
c37e28cab3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue