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