Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
warn and no longer generate an app key
  • Loading branch information
alexjustesen committed Jun 7, 2024
commit 2fb2a4dd0cc890d2ebc2d11b49786b7da5969e22
5 changes: 2 additions & 3 deletions root/etc/s6-overlay/s6-rc.d/init-speedtest-tracker-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ done
# Check for app key
if [[ -z ${APP_KEY} ]]; then
if ! grep -E "APP_KEY=[0-9A-Za-z:+\/=]{1,}" /app/www/.env > /dev/null; then
export APP_KEY=$(s6-setuidgid abc php /app/www/artisan key:generate --show)
echo "An application key was generated at start up, as no environment variable was set."
echo "To set an application key that persists, read the docs: https://docs.speedtest-tracker.dev/"
echo "An application key is missing!"
echo "Go to https://speedtest-tracker.dev/ generate an application key."
fi
fi

Expand Down