You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# check for ADVANCED_MODE to be != 0; copy sample env file to /config and ln to /var/www/html if != 0, if = 0 then copy .example.env to .env and run seds
20
+
if [ "$ADVANCED_MODE" == 1 && ! -f "/config/.env" ];
21
+
then
22
+
echo "Advanced Mode"
23
+
cp /var/www/html/.env.example /config/.env
24
+
ln -s /config/.env /var/www/html/.env
25
+
elif [ -z "$ADVANCED_MODE" ];
26
+
echo "Basic Mode"
27
+
cp /var/www/html/.env.example /var/www/html/.env
28
+
else
29
+
echo "Finished symlinks"
30
+
fi
23
31
24
32
# Create API key if needed
25
33
if [ ! -f "/config/BOOKSTACK_APP_KEY.txt" ]
@@ -36,7 +44,7 @@ sed -i "s/DB_HOST=localhost/DB_HOST=${DB_HOST}/g" /var/www/html/.env
36
44
sed -i "s/DB_DATABASE=database_database/DB_DATABASE=${DB_DATABASE}/g" /var/www/html/.env
37
45
sed -i "s/DB_USERNAME=database_username/DB_USERNAME=${DB_USER}/g" /var/www/html/.env
38
46
sed -i "s/DB_PASSWORD=database_user_password/DB_PASSWORD=${DB_PASS}/g" /var/www/html/.env
39
-
sed -i "s/# APP_URL=http://bookstack.dev/APP_URL=${APP_URL}/g" /var/www/html/.env
0 commit comments