Skip to content

Commit 078edc9

Browse files
authored
Merge pull request #41 from os2display/bugfix/jwt-ensure-file-check
Ensure the JWT key files exist
2 parents d7fe49e + b666597 commit 078edc9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Taskfile.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ tasks:
182182
issued tokens — screens must re-authenticate). Requires the stack up.
183183
cmds:
184184
- |
185-
if {{.COMPOSE}} exec -T os2display bin/console lexik:jwt:check-config >/dev/null 2>&1; then
185+
# Check if both JWT key files exist AND the config is valid
186+
if [ -f ./jwt/private.pem ] && [ -f ./jwt/public.pem ] && {{.COMPOSE}} exec -T os2display bin/console lexik:jwt:check-config >/dev/null 2>&1; then
186187
echo "JWT keypair OK — leaving it untouched."
187188
else
188189
echo "JWT keypair missing or invalid for the current JWT_PASSPHRASE — regenerating."

0 commit comments

Comments
 (0)