From a3e088199f120d873a31292a4e3f0c920a7aeb8e Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 4 Dec 2023 21:06:02 +0100 Subject: [PATCH] wip --- .env.production | 8 -------- scripts/upgrade.sh | 24 +----------------------- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/.env.production b/.env.production index 5d9eeaaaf..32652711e 100644 --- a/.env.production +++ b/.env.production @@ -4,11 +4,3 @@ APP_KEY= DB_PASSWORD= REDIS_PASSWORD= - -PUSHER_APP_ID= -PUSHER_APP_KEY= -PUSHER_APP_SECRET= - -VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" -VITE_PUSHER_HOST="${PUSHER_HOST}" -VITE_PUSHER_PORT="${PUSHER_PORT}" diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index 3659b2abf..f3a8a18a1 100644 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh @@ -1,7 +1,7 @@ #!/bin/bash ## Do not modify this file. You will lost the ability to autoupdate! -VERSION="1.1.0" +VERSION="1.0.3" CDN="https://cdn.coollabs.io/coolify" curl -fsSL $CDN/docker-compose.yml -o /data/coolify/source/docker-compose.yml @@ -11,28 +11,6 @@ curl -fsSL $CDN/.env.production -o /data/coolify/source/.env.production # Merge .env and .env.production. New values will be added to .env sort -u -t '=' -k 1,1 /data/coolify/source/.env /data/coolify/source/.env.production | sed '/^$/d' > /data/coolify/source/.env.temp && mv /data/coolify/source/.env.temp /data/coolify/source/.env -# Check if PUSHER_APP_ID or PUSHER_APP_KEY or PUSHER_APP_SECRET is empty in /data/coolify/source/.env -if grep -q "PUSHER_APP_ID=" /data/coolify/source/.env; then - echo "PUSHER_APP_ID is set in .env" -else - echo "PUSHER_APP_ID is not set in .env" - sed -i "s|PUSHER_APP_ID=.*|PUSHER_APP_ID=$(openssl rand -base64 32)|g" /data/coolify/source/.env -fi - -if grep -q "PUSHER_APP_KEY=" /data/coolify/source/.env; then - echo "PUSHER_APP_KEY is set in .env" -else - echo "PUSHER_APP_KEY is not set in .env" - sed -i "s|PUSHER_APP_KEY=.*|PUSHER_APP_KEY=$(openssl rand -base64 32)|g" /data/coolify/source/.env -fi - -if grep -q "PUSHER_APP_SECRET=" /data/coolify/source/.env; then - echo "PUSHER_APP_SECRET is set in .env" -else - echo "PUSHER_APP_SECRET is not set in .env" - sed -i "s|PUSHER_APP_SECRET=.*|PUSHER_APP_SECRET=$(openssl rand -base64 32)|g" /data/coolify/source/.env -fi - # Make sure coolify network exists docker network create --attachable coolify 2>/dev/null # docker network create --attachable --driver=overlay coolify-overlay 2>/dev/null