fix: make sure user is owner of his home directory
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a376de7406
commit
74301f22fd
1 changed files with 2 additions and 1 deletions
|
@ -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}
|
Loading…
Reference in a new issue