Skip to content

Commit 8cacbdb

Browse files
committed
hopefuly fix up key gen routine
1 parent e0bc91a commit 8cacbdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

root/etc/cont-init.d/50-config

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ do
1717
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
1818
done
1919

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" ]
20+
# Create API key if needed
21+
if [ ! -f "/config/BOOKSTACK_APP_KEY.txt" ]
2222
then
2323
echo "Generating BookStack app key for first run"
24-
key=$(php /var/www/html/artisan key:generate --show)
24+
key=$(php /var/www/html/artisan key:generate --show | tr -d '//' )
2525
echo $key > /config/BOOKSTACK_APP_KEY.txt
2626
echo "App Key set to $key you can modify the file to update /config/BOOKSTACK_APP_KEY.txt"
2727
fi

0 commit comments

Comments
 (0)