From 8cacbdb0bd24a1e2a3df04184708f44d432978eb Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Wed, 1 Aug 2018 18:31:03 +0100 Subject: [PATCH] hopefuly fix up key gen routine --- root/etc/cont-init.d/50-config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/etc/cont-init.d/50-config b/root/etc/cont-init.d/50-config index 801cf18..4c44659 100644 --- a/root/etc/cont-init.d/50-config +++ b/root/etc/cont-init.d/50-config @@ -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