Skip to content

Commit

Permalink
Merge pull request #5 from linuxserver/key_fix_allegedly
Browse files Browse the repository at this point in the history
hopefuly fix up key gen routine
  • Loading branch information
sparklyballs authored Aug 1, 2018
2 parents e0bc91a + 8cacbdb commit 7500e19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions root/etc/cont-init.d/50-config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7500e19

Please sign in to comment.