mirror of
https://github.com/wolfydw/backup_OBS.git
synced 2026-05-08 06:37:02 +08:00
Add automated install and stable updates
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Update backup_OBS scripts from Git
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=__RUN_USER__
|
||||
WorkingDirectory=__WORKDIR__
|
||||
ExecStart=__WORKDIR__/update.sh stable
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Run backup_OBS updater periodically
|
||||
|
||||
[Timer]
|
||||
OnBootSec=10m
|
||||
OnUnitActiveSec=1h
|
||||
Persistent=true
|
||||
Unit=backup-obs-update.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user