chore: Copy .env file to .env-{DATE} if it exists

This commit is contained in:
Andras Bacsai
2024-09-10 14:54:22 +02:00
parent f70160a17c
commit 3e188bf947

View File

@@ -340,7 +340,6 @@ curl -fsSL $CDN/upgrade.sh -o /data/coolify/source/upgrade.sh
# Copy .env.example if .env does not exist
if [ -f $ENV_FILE ]; then
echo "File exists: $ENV_FILE"
cat $ENV_FILE
echo "Copying .env to .env-$DATE"
cp $ENV_FILE $ENV_FILE-$DATE
else