From 5e62235a545eaf4055b3a2839a9e43c6d0774fe1 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:54 -0400 Subject: [PATCH] Correct ownership of deploy homedir too --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index fe9a675..c03c194 100755 --- a/install.sh +++ b/install.sh @@ -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