diff options
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postinst-gconf | 11 | ||||
-rw-r--r-- | autoscripts/postinst-scrollkeeper | 2 | ||||
-rw-r--r-- | autoscripts/prerm-gconf | 11 |
3 files changed, 23 insertions, 1 deletions
diff --git a/autoscripts/postinst-gconf b/autoscripts/postinst-gconf new file mode 100644 index 00000000..c5ee87d5 --- /dev/null +++ b/autoscripts/postinst-gconf @@ -0,0 +1,11 @@ +if [ "$1" = "configure" ]; then + SCHEMA_LOCATION=/etc/gconf/schemas + SCHEMA_FILES="#SCHEMAS#" + for SCHEMA in $SCHEMA_FILES; do + if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then + HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ + gconftool-2 \ + --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null + fi + done +fi diff --git a/autoscripts/postinst-scrollkeeper b/autoscripts/postinst-scrollkeeper index 5f2a255d..1132b56c 100644 --- a/autoscripts/postinst-scrollkeeper +++ b/autoscripts/postinst-scrollkeeper @@ -1,3 +1,3 @@ -if [ "$1" = "configure" ]; then +if [ "$1" = "configure" ] && which scrollkeeper-update 2>/dev/null; then scrollkeeper-update -q fi diff --git a/autoscripts/prerm-gconf b/autoscripts/prerm-gconf new file mode 100644 index 00000000..aaa803e7 --- /dev/null +++ b/autoscripts/prerm-gconf @@ -0,0 +1,11 @@ +if [ "$1" = remove ] || [ "$1" = upgrade ]; then + SCHEMA_LOCATION=/etc/gconf/schemas + SCHEMA_FILES="#SCHEMAS#" + for SCHEMA in $SCHEMA_FILES; do + if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then + HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ + gconftool-2 \ + --makefile-uninstall-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null + fi + done +fi |