mirror of
https://github.com/NewFuture/DDNS.git
synced 2022-04-19 20:24:44 +00:00
* feat(docker): add entrypoint.sh * docs(docker): example using environment variables
15 lines
253 B
Bash
Executable File
15 lines
253 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $# -eq 0 ]; then
|
|
printenv > /etc/environment
|
|
echo "*/5 * * * * /ddns -c /config.json" > /etc/crontabs/root
|
|
exec crond -f
|
|
else
|
|
first=`echo $1 | cut -c1`
|
|
if [ "$first" = "-" ]; then
|
|
exec /ddns $@
|
|
else
|
|
exec $@
|
|
fi
|
|
fi
|