fix: make sure user is owner of his home directory
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter 2023-06-15 18:55:20 +02:00
parent a376de7406
commit 74301f22fd
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9

View file

@ -86,8 +86,8 @@ runcmd:
%{ if install_dotnet_setup ~}
- loginctl enable-linger ${username}
- mkdir -p /home/${username}/.config/systemd/user/sockets.target.wants
- chown -R ${username}:${username} /home/${username}
- ln -sf /usr/lib/systemd/system/podman.socket /home/${username}/.config/systemd/user/sockets.target.wants/
- chown -R ${username}:${username} /home/${username}
- sudo -u ${username} DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" systemctl --user start podman
%{ endif ~}
%{ if install_terraform_setup ~}
@ -98,3 +98,4 @@ runcmd:
- dnf install -y $(curl -sL https://api.github.com/repos/coder/code-server/releases/latest | jq -r '.assets[].browser_download_url' | grep "amd64.rpm")
- systemctl enable --now code-server@${username}
%{ endif }
- chown -R ${username}:${username} /home/${username}