mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-10 13:04:44 +08:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
pre_upgrade() {
|
|
# remove old symbolic link installed by oxygen-icons
|
|
[[ -h /usr/share/icons/default.kde4 ]] && rm /usr/share/icons/default.kde4 &>/dev/null
|
|
}
|
|
|
|
post_install() {
|
|
if [ -e "/etc/chakra/updates.conf" ] ; then
|
|
|
|
. /etc/chakra/updates.conf
|
|
|
|
if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then
|
|
/usr/bin/chakra-update-icons
|
|
fi
|
|
|
|
if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then
|
|
/usr/bin/chakra-update-sycoca
|
|
fi
|
|
|
|
if [ "$UPDATE_USER_CONFIG" = "yes" ]; then
|
|
/usr/bin/chakra-update-user-sycoca
|
|
fi
|
|
else
|
|
echo " > WARNING"
|
|
echo " The package chakra-common seems not to be installed,"
|
|
echo " this can possibly break the installation. Just install it"
|
|
echo " manually after this installation/update, run the following"
|
|
echo " commands and restart KDE afterwards:"
|
|
echo " sudo chakra-config-updater"
|
|
echo " kbuildsycoca4"
|
|
echo " "
|
|
fi
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install
|
|
}
|
|
|
|
post_remove() {
|
|
post_install
|
|
}
|