Skip to content

Commit

Permalink
Added README and install file to yaourt-auto-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlendea committed Dec 15, 2020
1 parent 395241b commit 60d1593
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/yaourt-auto-sync/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Pacman Auto Update

Arch Linux package to install a systemd service and timer which updates the system every hour if needed.

## See timer

Look for a timer with name `pacman-auto-update.timer`


```sh
systemctl list-timers
```

## License

yaourt-auto-sync GitHub repo: https://github.com/hmlendea/yaourt-auto-sync
pacman-auto-update GitHub repo: https://github.com/cmuench/pacman-auto-update
21 changes: 21 additions & 0 deletions pkg/yaourt-auto-sync/yaourt-auto-sync.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
post_install() {
systemctl enable --now yaourt-auto-sync.timer || true
}

post_upgrade() {
systemctl --system daemon-reload >/dev/null || true
systemctl restart yaourt-auto-sync.timer || true
}

pre_remove() {
if [ -d /run/systemd/system ]; then
systemctl disable --now yaourt-auto-sync.timer >/dev/null
fi
}

post_remove() {
if [ -d /run/systemd/system ] ; then
systemctl --system daemon-reload >/dev/null || true
fi
}

0 comments on commit 60d1593

Please sign in to comment.