diff options
Diffstat (limited to 'pamac.install')
-rw-r--r-- | pamac.install | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/pamac.install b/pamac.install index 8437f7321391..811374827e2a 100644 --- a/pamac.install +++ b/pamac.install @@ -1,17 +1,13 @@ 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' + # enable pamac extension + printf '==> Enable Pamac Updates Indicator via\n' + printf ' Extensions\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 +post_upgrade() { + if [[ ! "gsettings get org.gnome.shell enabled-extensions | grep 'pamac-updates'" ]]; then + # enable pamac extension + printf '==> Enable Pamac Updates Indicator via\n' + printf ' Extensions\n' + fi +} |