chore: re-order startup script
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter 2023-06-15 19:03:07 +02:00
parent 74301f22fd
commit 0cf60f2942
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9

View file

@ -81,8 +81,11 @@ write_files:
%{ endif ~}
runcmd:
- chown -R ${username}:${username} /home/${username}
- systemctl enable coder-agent
- systemctl start coder-agent
- systemctl enable --now coder-agent
%{ if install_terraform_setup ~}
- dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
- dnf -y install terraform
%{ endif ~}
%{ if install_dotnet_setup ~}
- loginctl enable-linger ${username}
- mkdir -p /home/${username}/.config/systemd/user/sockets.target.wants
@ -90,10 +93,6 @@ runcmd:
- 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 ~}
- dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
- dnf -y install terraform
%{ endif ~}
%{ if code_server_setup ~}
- 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}