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