Manage variables via systemd override config

See #1
This commit is contained in:
2019-11-13 23:54:37 +01:00
parent 8acc3ec2f3
commit 611acd4311
4 changed files with 37 additions and 5 deletions

13
Makefile Normal file
View File

@ -0,0 +1,13 @@
systemd_path := /etc/systemd/system
install:
cp borgbackup.* $(systemd_path)/
chmod a+x $(systemd_path)/borgbackup.*
systemctl edit borgbackup.service
systemctl enable borgbackup.timer
systemctl start borgbackup.timer
uninstall:
systemctl disable borgbackup.timer
rm -rvf $(systemd_path)/borgbackup.service
rm -rvf $(systemd_path)/borgbackup.timer
rm -rvf /etc/systemd/system/borgbackup.service.d