summarylogtreecommitdiffstats
path: root/pamac.install
diff options
context:
space:
mode:
authorTommyTran7322021-08-18 03:22:00 -0400
committerTommyTran7322021-08-18 03:22:00 -0400
commitd9755bdb571ea84809a980b91455415a79b2f376 (patch)
treeb28e9fc374d56b3b2b4b9b73c710ea9ec3fca9fa /pamac.install
downloadaur-d9755bdb571ea84809a980b91455415a79b2f376.tar.gz
Initial Commit
Diffstat (limited to 'pamac.install')
-rw-r--r--pamac.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/pamac.install b/pamac.install
new file mode 100644
index 000000000000..4912c8eb1263
--- /dev/null
+++ b/pamac.install
@@ -0,0 +1,22 @@
+post_install() {
+ # enable flatpak repo
+ if [ -f /usr/bin/flatpak ]; then
+ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
+ flatpak remote-add --if-not-exists flathub-beta https://flathub.org/repo-beta/flathub-beta.flatpakrepo
+ fi
+ # 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
+}