chore: re-order startup script
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
74301f22fd
commit
0cf60f2942
1 changed files with 5 additions and 6 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue