mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
Update SSL certificates via an https-update script
This commit is contained in:
parent
9f02ffd3ab
commit
b80d80a111
@ -1,3 +1,3 @@
|
|||||||
14 3 * * * /usr/sbin/logrotate /etc/logrotate.conf
|
14 3 * * * /usr/sbin/logrotate /etc/logrotate.conf
|
||||||
0 2 * * 0 /usr/sbin/dehydrated-wrapper
|
0 2 * * 0 /usr/sbin/https-update
|
||||||
*/15 * * * * /usr/sbin/dyndns-update
|
*/15 * * * * /usr/sbin/dyndns-update
|
||||||
|
@ -13,4 +13,4 @@ mkdir -p "${BASE_DIR}"
|
|||||||
mkdir -p "${TMP_DIR}"
|
mkdir -p "${TMP_DIR}"
|
||||||
|
|
||||||
logger -t dehydrated "checking for certificate renewal"
|
logger -t dehydrated "checking for certificate renewal"
|
||||||
dehydrated -c
|
dehydrated "$@"
|
||||||
|
12
board/common/overlay/usr/sbin/https-update
Executable file
12
board/common/overlay/usr/sbin/https-update
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PROG="/usr/sbin/dehydrated-wrapper"
|
||||||
|
SSL_DIR="/data/etc/ssl"
|
||||||
|
|
||||||
|
if ! [[ -d "${SSL_DIR}" ]]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
logger -t dehydrated "updating SSL certificates"
|
||||||
|
${PROG} -c 2>&1 | logger -t dehydrated
|
||||||
|
exit ${PIPESTATUS[0]}
|
Loading…
x
Reference in New Issue
Block a user