Periodically commit pending changes in all local projects
This commit is contained in:
parent
01085f3746
commit
fb15ba44c1
3 changed files with 23 additions and 0 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
#! /usr/bin/sh
|
#! /usr/bin/sh
|
||||||
|
|
||||||
|
# keep-sorted start
|
||||||
systemctl --user enable --now backup.timer
|
systemctl --user enable --now backup.timer
|
||||||
systemctl --user enable --now sync-backup.timer
|
systemctl --user enable --now sync-backup.timer
|
||||||
|
systemctl --user enable --now sync-git-repos.timer
|
||||||
|
# keep-sorted end
|
||||||
|
|
|
||||||
10
.config/systemd/user/sync-git-repos.service
Normal file
10
.config/systemd/user/sync-git-repos.service
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Commit changes in local project repositories
|
||||||
|
Wants=sync-git-repos.timer
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
WorkingDirectory=%h
|
||||||
|
ExecStart=%h/.local/bin/sync-git-repos
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
10
.config/systemd/user/sync-git-repos.timer
Normal file
10
.config/systemd/user/sync-git-repos.timer
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Periodic repository commit
|
||||||
|
Requires=sync-git-repos.service
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
Unit=sync-git-repos.service
|
||||||
|
OnCalendar=*:15,45
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
Loading…
Add table
Add a link
Reference in a new issue