Correct ownership of deploy homedir too

This commit is contained in:
Joshua Boniface 2019-12-14 13:26:10 -05:00 committed by Joshua Boniface
parent 6493316194
commit 5bca6bb002
1 changed files with 1 additions and 0 deletions

View File

@ -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