We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0bc91a commit 8cacbdbCopy full SHA for 8cacbdb
root/etc/cont-init.d/50-config
@@ -17,11 +17,11 @@ do
17
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
18
done
19
20
-# Create API key if needed - taken from https://github.com/linuxserver/docker-snipe-it/blob/master/root/etc/cont-init.d/40-config courtesy of thelamer
21
-if [ ! -f "/config/www" ]
+# Create API key if needed
+if [ ! -f "/config/BOOKSTACK_APP_KEY.txt" ]
22
then
23
echo "Generating BookStack app key for first run"
24
- key=$(php /var/www/html/artisan key:generate --show)
+ key=$(php /var/www/html/artisan key:generate --show | tr -d '//' )
25
echo $key > /config/BOOKSTACK_APP_KEY.txt
26
echo "App Key set to $key you can modify the file to update /config/BOOKSTACK_APP_KEY.txt"
27
fi
0 commit comments