Correct ownership of deploy homedir too
This commit is contained in:
parent
c5cd38ce68
commit
5e62235a54
|
@ -300,6 +300,7 @@ chroot ${target} mkdir -p /var/home/deploy/.ssh
|
|||
if [[ -n ${target_keys_url} ]]; then
|
||||
wget -O ${target}/var/home/deploy/.ssh/authorized_keys ${target_keys_url}
|
||||
chmod 0600 /var/home/deploy/.ssh/authorized_keys
|
||||
chown -R deploy:operator /var/home/deploy
|
||||
else
|
||||
echo "${target_password}" | chroot ${target} passwd --stdin deploy >&2
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue