mirror of
https://github.com/linuxserver/docker-bookstack.git
synced 2026-02-20 02:30:30 +08:00
Merge pull request #5 from linuxserver/key_fix_allegedly
hopefuly fix up key gen routine
This commit is contained in:
commit
7500e1990d
@ -17,11 +17,11 @@ do
|
||||
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
|
||||
done
|
||||
|
||||
# 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
|
||||
if [ ! -f "/config/www" ]
|
||||
# Create API key if needed
|
||||
if [ ! -f "/config/BOOKSTACK_APP_KEY.txt" ]
|
||||
then
|
||||
echo "Generating BookStack app key for first run"
|
||||
key=$(php /var/www/html/artisan key:generate --show)
|
||||
key=$(php /var/www/html/artisan key:generate --show | tr -d '//' )
|
||||
echo $key > /config/BOOKSTACK_APP_KEY.txt
|
||||
echo "App Key set to $key you can modify the file to update /config/BOOKSTACK_APP_KEY.txt"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user