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 ~} %{ endif ~}
runcmd: runcmd:
- chown -R ${username}:${username} /home/${username} - chown -R ${username}:${username} /home/${username}
- systemctl enable coder-agent - systemctl enable --now coder-agent
- systemctl start 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 ~} %{ if install_dotnet_setup ~}
- loginctl enable-linger ${username} - loginctl enable-linger ${username}
- mkdir -p /home/${username}/.config/systemd/user/sockets.target.wants - mkdir -p /home/${username}/.config/systemd/user/sockets.target.wants
@ -90,10 +93,6 @@ runcmd:
- chown -R ${username}:${username} /home/${username} - chown -R ${username}:${username} /home/${username}
- sudo -u ${username} DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" systemctl --user start podman - sudo -u ${username} DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" systemctl --user start podman
%{ endif ~} %{ 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 ~} %{ 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") - 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} - systemctl enable --now code-server@${username}