File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,15 @@ elif [ -z "$ADVANCED_MODE" ];
35
35
sed -i "s/DB_DATABASE=database_database/DB_DATABASE=${DB_DATABASE}/g" /var/www/html/.env
36
36
sed -i "s/DB_USERNAME=database_username/DB_USERNAME=${DB_USER}/g" /var/www/html/.env
37
37
sed -i "s/DB_PASSWORD=database_user_password/DB_PASSWORD=${DB_PASS}/g" /var/www/html/.env
38
- elif [ ! -z "$APP_URL" -a -z "$ADVANCED_MODE" ];
38
+ else
39
+ echo "Nothing to do with .env - what did you do homer?"
40
+ fi
41
+
42
+ # Check to see if appurl is set, and whether advanced mode is set. Will set .env APP_URL if variable present, and advanced mode not set
43
+ if [ ! -z "$APP_URL" -a -z "$ADVANCED_MODE" ];
39
44
then
40
45
echo "App URL Set"
41
46
sed -i "s,#\sAPP_URL.*,APP_URL=${APP_URL},g" /var/www/html/.env
42
- else
43
- echo "Nothing to do with .env - what did you do homer?"
44
47
fi
45
48
46
49
# Create API key if needed
You can’t perform that action at this time.
0 commit comments