2017-09-19 17:42:45 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Certificate Update Runner for Dehydrated
|
|
|
|
ConditionPathExists=/etc/dehydrated/config
|
|
|
|
After=network-online.target
|
|
|
|
Wants=acmeresponder.socket
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2017-10-17 16:48:54 +02:00
|
|
|
ExecStartPost=-/usr/bin/find -L @POSTRUNHOOKS_DIR@ -maxdepth 1 -executable -type f -exec {} \;
|
2017-10-20 12:57:53 +02:00
|
|
|
EnvironmentFile=/etc/dehydrated/config
|
|
|
|
ExecStart=/usr/bin/su -s /bin/bash -c "/usr/bin/dehydrated --cron" -g $DEHYDRATED_GROUP $DEHYDRATED_USER
|
2017-09-19 17:42:45 +02:00
|
|
|
|
2017-10-06 12:52:01 +02:00
|
|
|
# dehydrated --cron will drop permissions and run critical code as dehydrated user.
|
|
|
|
User=root
|
|
|
|
Group=root
|