1
0
mirror of https://github.com/tommytran732/pamac-flatpak synced 2024-10-18 12:25:14 -04:00
pamac-flatpak/pamac.install
Tommy c096da6c41
Update to 10.4.2
Signed-off-by: Tommy <contact@tommytran.io>
2022-09-02 22:26:26 -04:00

23 lines
1009 B
Plaintext

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
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
systemctl disable --now pamac-cleancache.timer
#systemctl disable --now pamac-mirrorlist.timer
}