summaryrefslogtreecommitdiff
path: root/autoscripts/prerm-gconf
blob: aaa803e7b7856e49927f03962a2866193125af29 (plain)
1
2
3
4
5
6
7
8
9
10
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