summarylogtreecommitdiffstats
path: root/pamac.install
blob: 272d6b4a05ea3efe1325f6f3cae4ce43930f7a28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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/beta-repo/flathub-beta.flatpakrepo
  fi   
  # enable systemd timers
  systemctl enable --now pamac-cleancache.timer
  #systemctl enable --now pamac-mirrorlist.timer
  # 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
  systemctl disable --now pamac-cleancache.timer
  #systemctl disable --now pamac-mirrorlist.timer
}