1
0
Fork 0
mirror of synced 2025-03-09 15:31:05 -04:00
garuda-common-settings/garuda-common-settings.install

39 lines
1.2 KiB
Text
Raw Normal View History

2021-03-29 14:12:31 +02:00
post_install() {
2022-04-15 13:11:07 +05:30
systemctl --global enable psd
systemctl enable systemd-oomd
2021-09-07 09:01:35 +02:00
systemctl enable btrfs-balance.timer
systemctl enable btrfs-defrag.timer
systemctl enable btrfs-scrub.timer
systemctl enable btrfs-trim.timer
2021-09-19 21:13:59 +02:00
systemctl enable garuda-pacman-lock
systemctl enable garuda-pacman-snapshot-reject
2022-04-15 13:11:07 +05:30
}
2021-03-29 14:12:31 +02:00
pre_upgrade() {
2022-05-14 18:45:11 +02:00
if [[ $(vercmp 2.6.2 $2) -gt 0 ]] && [[ $(vercmp 2.5.8 $2) -lt 0 ]]; then
umount /usr/share/libalpm/hooks/01-snapshot-reject.hook
# Not technically necessary
ln -s /dev/null /etc/pacman.d/hooks/01-snapshot-reject.hook
fi
}
2021-03-29 14:12:31 +02:00
post_upgrade() {
2021-09-07 09:01:35 +02:00
echo "Performing misc postinstall operations..."
mkfontscale /usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc > /dev/null 2>&1
mkfontdir /usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc > /dev/null 2>&1
fc-cache -s >/dev/null
2021-03-29 14:12:31 +02:00
2021-09-07 09:01:35 +02:00
glib-compile-schemas usr/share/glib-2.0/schemas
gtk-update-icon-cache -ftq usr/share/icons/hicolor
/bin/sh -c 'dconf update'
if [[ $(vercmp 2.6.0 $2) -gt 0 ]]; then
systemctl enable garuda-pacman-snapshot-reject
fi
2021-03-29 14:12:31 +02:00
}
post_remove() {
rm -f /etc/pacman.d/hooks/01-snapshot-reject.hook
}