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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
refactor: Update .env file path in install.sh script
Andras Bacsaic588cef5be3f
diff --git a/scripts/install.sh b/scripts/install.shindex e2a0793b1d..3d77d528f3 100755--- a/scripts/install.sh+++ b/scripts/install.sh@@ -11,6 +11,7 @@ DOCKER_VERSION="26.0"CDN="https://cdn.coollabs.io/coolify"OS_TYPE=$(grep -w "ID" /etc/os-release | cut -d "=" -f 2 | tr -d '"')+ENV_FILE="/data/coolify/source/.env"# Check if the OS is manjaro, if so, change it to archif [ "$OS_TYPE" = "manjaro" ] || [ "$OS_TYPE" = "manjaro-arm" ]; then@@ -285,8 +286,8 @@ curl -fsSL $CDN/.env.production -o /data/coolify/source/.env.productioncurl -fsSL $CDN/upgrade.sh -o /data/coolify/source/upgrade.sh# Copy .env.example if .env does not exist-if [ ! -f /data/coolify/source/.env ]; then- cp /data/coolify/source/.env.production /data/coolify/source/.env+if [ ! -f $ENV_FILE ]; then+ cp /data/coolify/source/.env.production $ENV_FILE# Generate a secure APP_ID and APP_KEYsed -i "s|^APP_ID=.*|APP_ID=$(openssl rand -hex 16)|" "$ENV_FILE"sed -i "s|^APP_KEY=.*|APP_KEY=base64:$(openssl rand -base64 32)|" "$ENV_FILE"