Files
preauth/init.sh
T
2025-11-12 15:15:30 -05:00

14 lines
252 B
Bash
Executable File

#!/bin/sh
# ensure we have required settings
if [ -z "$PREAUTH_KEY" ]; then
export PREAUTH_KEY=$(cd /preauth && php init-key.php)
fi
if [ -z "$PREAUTH_TOKEN" ]; then
export PREAUTH_TOKEN=$(cd /preauth && php init-token.php)
fi
exec php-fpm