huawei-3G-SMS-API/entrypoint.sh

22 lines
325 B
Bash
Raw Permalink Normal View History

2019-08-06 11:24:49 -04:00
#!/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
2019-08-06 11:56:33 -04:00
if [[ -z "${GW_IP}" ]]
2019-08-06 11:24:49 -04:00
then
2019-08-06 11:56:33 -04:00
echo 'Please define the env var GW_IP, exit' >&2
2019-08-06 11:24:49 -04:00
exit 3
fi
python3 "/app/sms.py"