summarylogtreecommitdiffstats
path: root/pamac.install
diff options
context:
space:
mode:
authorZeph2018-03-29 08:45:19 +0200
committerZeph2018-03-29 08:45:19 +0200
commit8aa4e019d0e786003d0aab62d9ea9f781b7f985c (patch)
treeedf1479f3565ad949379fa627f712ba3dadcde94 /pamac.install
parent9a4e286face3668ab8886588da77c228bd12b460 (diff)
downloadaur-8aa4e019d0e786003d0aab62d9ea9f781b7f985c.tar.gz
fix pamac systemd timers
Diffstat (limited to 'pamac.install')
-rw-r--r--pamac.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/pamac.install b/pamac.install
index 471206c11b1a..8437f7321391 100644
--- a/pamac.install
+++ b/pamac.install
@@ -1,7 +1,17 @@
post_install() {
+ # enable systemd timers
+ ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/multi-user.target.wants
+ #ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/multi-user.target.wants
+ # polkit agent
printf '==> An authentication agent is required\n'
printf ' Cinnamon, Deepin, GNOME, GNOME Flashback, KDE, LXDE, LXQt, MATE and Xfce\n'
printf ' have an authentication agent already.\n'
printf ' See https://wiki.archlinux.org/index.php/Polkit#Authentication_agents\n'
printf ' for other desktop environments.\n'
}
+
+post_remove() {
+ # disable systemd timers
+ rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
+ #rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
+} \ No newline at end of file