[BREAKING] Pre-built images and Auto Updates

This commit is contained in:
Shiny Nematoda
2022-12-13 11:08:30 +00:00
parent f937cb515c
commit 82b56e1b6f
4 changed files with 26 additions and 56 deletions
+5 -8
View File
@@ -1,4 +1,7 @@
#!/bin/sh
set -e
printf "\nEnter hostname for Proxy (Same as the one used for Piped): " && read -r proxy
printf '\nFetching List of Hostnames for Backends (Hyperpipe) \n\n'
@@ -11,20 +14,14 @@ curl -s "https://piped-instances.kavin.rocks" | jq '.[].api_url|ltrimstr("https:
printf "\nEnter hostname for the default piped backend to be used: " && read -r piped
rm -rf ./Hyperpipe ./hyperpipe-backend
git clone --depth 1 https://codeberg.org/Hyperpipe/Hyperpipe.git
git clone --depth 1 https://codeberg.org/Hyperpipe/hyperpipe-backend
rm -f "*/docker-compose.yml"
cp docker-compose.template.yml docker-compose.yml
sed -i "s/hyperpipe-proxy.onrender.com/$proxy/g" docker-compose.yml
sed -i "s/pipedapi.kavin.rocks/$piped/g" docker-compose.yml
sed -i "s/PIPED/$piped/g" docker-compose.yml
sed -i "s/hyperpipeapi.onrender.com/$backend/g" docker-compose.yml
sed -i "s/BACKEND/$backend/g" docker-compose.yml
printf '\nDone!\n'