Commit 31e34db6 authored by Nicolas Bruguier's avatar Nicolas Bruguier

Drop gconf from postinst and postrm

parent 3c815511
...@@ -11,38 +11,4 @@ case "$1" in ...@@ -11,38 +11,4 @@ case "$1" in
;; ;;
esac esac
# Apply GConf default and mandatory values for Pantheon session
signal_daemons()
{
# Tell all running daemons to reload their databases
pkill -HUP -x gconfd-2 >/dev/null 2>&1 || true
}
case "$1" in
configure|upgrade)
if which update-gconf-defaults >/dev/null 2>&1 ; then
mkdir -p /var/lib/gconf/pantheon.default
fi
;;
triggered)
for trigger in $2; do
case $trigger in
/usr/share/gconf/pantheon/default)
update-gconf-defaults --source /usr/share/gconf/pantheon/default \
--destination /var/lib/gconf/pantheon.default --no-signal
;;
esac
done
signal_daemons
exit 0
;;
esac
#DEBHELPER# #DEBHELPER#
# Upon installation/upgrade, regenerate all databases, because in this case
# there will be no trigger run
update-gconf-defaults --source /usr/share/gconf/pantheon/default \
--destination /var/lib/gconf/pantheon.default --no-signal
signal_daemons
...@@ -10,16 +10,4 @@ case "$1" in ...@@ -10,16 +10,4 @@ case "$1" in
;; ;;
esac esac
case "$1" in
remove|purge)
if which update-gconf-defaults >/dev/null 2>&1 && [ -d /usr/share/gconf/mandatory/pantheon ]; then
update-gconf-defaults --source /usr/share/gconf/pantheon/default \
--destination /var/lib/gconf/pantheon.default
fi
if [ -d /var/lib/gconf/pantheon.default ]; then
rm -rf /var/lib/gconf/pantheon.default
fi
;;
esac
#DEBHELPER# #DEBHELPER#
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment