test release 1: debugging main script
This commit is contained in:
33
deploy.sh
33
deploy.sh
@@ -99,14 +99,43 @@ echo "Docker installation complete."
|
||||
docker --version
|
||||
|
||||
# install dockge
|
||||
mkdir -p /opt/stacks /opt/dockge
|
||||
mkdir -p /opt/stacks /opt/dockge /opt/scripts
|
||||
chmod -R 775 /opt/stacks
|
||||
cd /opt/dockge
|
||||
|
||||
# Download your compose.yaml
|
||||
curl "https://dockge.kuma.pet/compose.yaml?port=5001&stacksPath=%2Fopt%2Fstacks" --output compose.yaml
|
||||
|
||||
# write configuration to compose files
|
||||
cp -r ./stacks/* /opt/stacks/
|
||||
cp -r ./scripts/* /opt/scripts/
|
||||
|
||||
|
||||
#adminemail
|
||||
replace_string_recursive "/opt/stacks" "?adminemail?" $adminemail
|
||||
#adminpass
|
||||
replace_string_recursive "/opt/stacks" "?adminpass?" $adminpass
|
||||
#timezone
|
||||
replace_string_recursive "/opt/stacks" "?timezone?" $timezone
|
||||
#domain
|
||||
replace_string_recursive "/opt/stacks" "?domain?" $domain
|
||||
#publicip
|
||||
replace_string_recursive "/opt/stacks" "?publicip?" $publicip
|
||||
#localip
|
||||
replace_string_recursive "/opt/stacks" "?localip?" $localip
|
||||
#ownclouddbpass
|
||||
replace_string_recursive "/opt/stacks" "?ownclouddbpass?" $ownclouddbpass
|
||||
#ownclouddbrootpass
|
||||
replace_string_recursive "/opt/stacks" "?ownclouddbrootpass?" $ownclouddbrootpass
|
||||
#convertxJWT
|
||||
replace_string_recursive "/opt/stacks" "?convertxJWT?" $convertxJWT
|
||||
#bookstackkey
|
||||
replace_string_recursive "/opt/stacks" "?bookstackkey?" $bookstackkey
|
||||
#bookstackdbpass
|
||||
replace_string_recursive "/opt/stacks" "?bookstackdbpass?" $bookstackdbpass
|
||||
#bookstackdbrootpass
|
||||
replace_string_recursive "/opt/stacks" "?bookstackdbrootpass?" $bookstackdbrootpass
|
||||
#onlyofficeJWT
|
||||
replace_string_recursive "/opt/stacks" "?onlyofficeJWT?" $onlyofficeJWT
|
||||
|
||||
|
||||
# install mailcow to /opt/stacks/mailcow so it shows up in dockge
|
||||
|
||||
Reference in New Issue
Block a user