Compare commits

..

1 Commits

Author SHA1 Message Date
wpetit f587ea19f4 feat: add systemd unit/timer files 2020-10-22 10:04:36 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ After=docker.service
[Service] [Service]
Type=oneshot Type=oneshot
WorkingDirectory=/mnt/data/backup WorkingDirectory=/opt/sentry-backup
ExecStartPre=/bin/sh -c 'systemctl -q is-active sentry.service && systemctl stop sentry' ExecStartPre=/bin/sh -c 'systemctl -q is-active sentry.service && systemctl stop sentry'
ExecStart=/opt/sentry-util/sentry-util.sh backup ExecStart=/opt/sentry-util/sentry-util.sh backup
ExecStartPost=/bin/sh -c 'systemctl start sentry' ExecStartPost=/bin/sh -c 'systemctl start sentry'