mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
Add dynamic DNS update helper
This commit is contained in:
parent
250857f10f
commit
354c7872ff
@ -1,2 +1,3 @@
|
||||
14 3 * * * /usr/sbin/logrotate /etc/logrotate.conf
|
||||
0 2 * * 0 /usr/sbin/dehydrated-wrapper
|
||||
*/15 * * * * /usr/sbin/dyndns-update
|
||||
|
10
board/common/overlay/usr/sbin/dyndns-update
Normal file
10
board/common/overlay/usr/sbin/dyndns-update
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT="/data/etc/dyndns-update.sh"
|
||||
|
||||
if ! [[ -f "${SCRIPT}" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
logger -t dyndns "updating dynamic DNS"
|
||||
bash "${SCRIPT}" 2>&1 | logger -t dyndns
|
Loading…
x
Reference in New Issue
Block a user