14 lines
252 B
Bash
Executable File
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
|
|
|