22 lines
327 B
Bash
22 lines
327 B
Bash
|
|
#!/bin/sh
|
||
|
|
|
||
|
|
if [[ -z "${PB_APIKEY}" ]]
|
||
|
|
then
|
||
|
|
echo 'Please define the env var PB_APIKEY, exit' >&2
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
if [[ -z "${PIN}" ]]
|
||
|
|
then
|
||
|
|
echo 'Please define the env var PIN, exit' >&2
|
||
|
|
exit 2
|
||
|
|
fi
|
||
|
|
|
||
|
|
if [[ -z "${GW_API}" ]]
|
||
|
|
then
|
||
|
|
echo 'Please define the env var GW_API, exit' >&2
|
||
|
|
exit 3
|
||
|
|
fi
|
||
|
|
|
||
|
|
python3 "/app/sms.py"
|