Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix install script

Andras Bacsai5159d4715902
diff --git a/scripts/install.sh b/scripts/install.sh
index 471f640ed0..5716ba2b69 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -2,7 +2,8 @@
## Do not modify this file. You will lose the ability to install and auto-update!
set -e # Exit immediately if a command exits with a non-zero status
-set -u # Treat unset variables as an error and exit
+## $1 could be empty, so we need to disable this check
+#set -u # Treat unset variables as an error and exit
set -o pipefail # Cause a pipeline to return the status of the last command that exited with a non-zero status
VERSION="1.1.0"
@@ -155,6 +156,11 @@ fi
# 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 AUTOUPDATE value is true in env, not in env file and it is not set in .env
+if [ "$AUTOUPDATE" = "false" ]; then
+ sed -i "s|AUTOUPDATE=.*|AUTOUPDATE=false|g" /data/coolify/source/.env
+fi
+
# Generate an ssh key (ed25519) at /data/coolify/ssh/keys/[email protected]
if [ ! -f /data/coolify/ssh/keys/[email protected] ]; then
ssh-keygen -t ed25519 -a 100 -f /data/coolify/ssh/keys/[email protected] -q -N "" -C root@coolify