Refactor the sudo
configuration script
This commit is contained in:
parent
1095853916
commit
fb2ff92b73
5 changed files with 19 additions and 4 deletions
scripts/Common/OS
|
@ -14,7 +14,7 @@ if [ (id -u) -eq 0 ]
|
|||
--comment "PortValhalla setup user" \
|
||||
--system \
|
||||
--no-user-group \
|
||||
--groups wheel,nix-users \
|
||||
--groups nix-users \
|
||||
--create-home \
|
||||
--uid (getConfig valhalla.setupUser.id --json) \
|
||||
"$name"
|
||||
|
|
|
@ -18,7 +18,7 @@ function runSetup
|
|||
|
||||
if not type -q installValhallaDeps
|
||||
function installValhallaDeps
|
||||
echo 'Please set up the hook `installValhallaDeps` for installing `fish`, `git`, `jq`, `nix` and `tmux`.'
|
||||
echo 'Please set up the hook `installValhallaDeps` for installing `fish`, `git`, `jq`, `nix`, `sudo` and `tmux`.'
|
||||
exit 1
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue