Fix ssh key permission error
This commit is contained in:
parent
cf717d7a50
commit
56f7f4228b
1 changed files with 2 additions and 1 deletions
|
@ -70,8 +70,9 @@ begin
|
|||
yq "$envKey.USER_GID = $gid" |
|
||||
sudo tee "$config" >/dev/null
|
||||
|
||||
sudo mkdir -p "$dir"
|
||||
and sudo mkdir -p "$dir"
|
||||
and sudo chown -R $uid:$gid "$dir"
|
||||
and sudo -u "#$uid" mkdir -p ~"$user"/.ssh
|
||||
rm "$file"
|
||||
|
||||
set port (yq (getSSHPortKey) "$overrides" | extractPort)
|
||||
|
|
Loading…
Reference in a new issue