2014-09-19 18:54:04 +00:00
|
|
|
post_install() {
|
|
|
|
if [ -x usr/bin/xdg-icon-resource ]; then
|
|
|
|
xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
|
|
|
|
fi
|
|
|
|
echo ">> If you use an HTTPS connection to CUPS, the first time you access"
|
|
|
|
echo ">> the interface it may take a very long time before the site comes up."
|
|
|
|
echo ">> This is because the first request triggers the generation of the CUPS"
|
|
|
|
echo ">> SSL certificates which can be a very time-consuming job."
|
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
|
|
|
if [ -x usr/bin/xdg-icon-resource ]; then
|
|
|
|
xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
|
|
|
|
fi
|
|
|
|
|
2014-10-31 16:40:29 +00:00
|
|
|
if [ "`vercmp $2 2.0.0-1`" -lt 0 ]; then
|
2014-09-19 18:54:04 +00:00
|
|
|
# important upgrade notice
|
2014-10-31 16:40:29 +00:00
|
|
|
echo "> systemd unit names have been renamed"
|
|
|
|
echo "> you should systemctl stop and disable cups.service and"
|
|
|
|
echo "> systemctl daemon-reload, start and enable org.cups.cupsd.service"
|
2014-09-19 18:54:04 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
|
|
|
if [ -x usr/bin/xdg-icon-resource ]; then
|
|
|
|
xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
|
|
|
|
fi
|
|
|
|
}
|