Move entrypoint
All checks were successful
perso/huawei-3G-SMS-API/master This commit looks good

This commit is contained in:
2019-08-06 11:42:51 -04:00
parent 4fc5edc549
commit d113b96bf4
2 changed files with 1 additions and 0 deletions

21
entrypoint.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/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"