1
0
Fork 0
mirror of synced 2024-07-09 00:06:05 +12:00
budibase/hosting/digitalocean/files/var/lib/cloud/scripts/per-instance/001_onboot

21 lines
556 B
Plaintext
Raw Normal View History

#!/bin/bash
# go into the app dir
cd /root
2022-01-12 08:33:22 +13:00
# fetch nginx and docker-compose files
wget https://raw.githubusercontent.com/Budibase/budibase/master/hosting/docker-compose.yaml
wget https://raw.githubusercontent.com/Budibase/budibase/master/hosting/hosting.properties
# Create .env file from hosting.properties using bash and then remove it
while read line; do
uuid=$(uuidgen)
echo $line | sed "s/budibase/$uuid/g" | sed "s/testsecret/$uuid/g" >> .env
done <hosting.properties
rm hosting.properties
# boot the stack
docker-compose up -d
# return
cd -