-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added README and install file to yaourt-auto-sync
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
|