fix: correct runcmd
This commit is contained in:
parent
a270f3ad03
commit
ce09073641
1 changed files with 2 additions and 2 deletions
|
@ -27,6 +27,7 @@ resource "hcloud_server" "main" {
|
|||
prefer_fqdn_over_hostname: true
|
||||
packages:
|
||||
- git
|
||||
- curl
|
||||
package_update: true
|
||||
package_upgrade: true
|
||||
power_state:
|
||||
|
@ -35,8 +36,7 @@ resource "hcloud_server" "main" {
|
|||
filename: /swapfile
|
||||
size: 512M
|
||||
runcmd:
|
||||
- su ubuntu -c "git clone --depth 1 git@github.com:tjo-space/infrastructure-ng.git /home/ubuntu/service"
|
||||
- su ubuntu -c "/home/ubuntu/service/install.sh"
|
||||
- su ubuntu -c "bash <(curl -s https://raw.githubusercontent.com/tjo-space/tjo-space-infrastructure/refs/heads/main/install.sh)"
|
||||
EOF
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue