summaryrefslogtreecommitdiff
path: root/extra/cups/cups.install
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-18 23:03:19 +0000
committerroot <root@rshg047.dnsready.net>2011-06-18 23:03:19 +0000
commitc80552b41838a5668458ebb1eb9b0f44ea6fe879 (patch)
treed8404bc10128ad69e29c762d116434876e5885a7 /extra/cups/cups.install
parente96f6ac6e912185a495a99af2b0d51b73bd1d044 (diff)
Sat Jun 18 23:03:19 UTC 2011
Diffstat (limited to 'extra/cups/cups.install')
-rw-r--r--extra/cups/cups.install12
1 files changed, 9 insertions, 3 deletions
diff --git a/extra/cups/cups.install b/extra/cups/cups.install
index e92e17ed3..c4307912b 100644
--- a/extra/cups/cups.install
+++ b/extra/cups/cups.install
@@ -1,5 +1,7 @@
post_install() {
- xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ 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"
@@ -7,9 +9,13 @@ post_install() {
}
post_upgrade() {
- xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ if [ -x usr/bin/xdg-icon-resource ]; then
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ fi
}
post_remove() {
- xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ if [ -x usr/bin/xdg-icon-resource ]; then
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ fi
}