[Pkg-utopia-commits] r320 - packages/experimental/avahi/debian
Ross Burton
ross at costa.debian.org
Sun Sep 11 11:26:03 UTC 2005
Author: ross
Date: 2005-09-11 11:26:01 +0000 (Sun, 11 Sep 2005)
New Revision: 320
Modified:
packages/experimental/avahi/debian/avahi-daemon.postinst
packages/experimental/avahi/debian/changelog
Log:
Move avahi users home dir, restart daemon
Modified: packages/experimental/avahi/debian/avahi-daemon.postinst
===================================================================
--- packages/experimental/avahi/debian/avahi-daemon.postinst 2005-09-10 11:51:25 UTC (rev 319)
+++ packages/experimental/avahi/debian/avahi-daemon.postinst 2005-09-11 11:26:01 UTC (rev 320)
@@ -17,12 +17,18 @@
case "$1" in
configure)
if ! getent passwd avahi >/dev/null; then
- adduser --quiet --system --home / \
+ adduser --quiet --system --home /var/run/avahi-daemon \
--gecos "Avahi mDNS daemon" --group avahi
fi
+ # If the Avahi user has the old home, change it
+ if ! getent passwd avahi | grep -q /var/run/avahi-daemon; then
+ usermod -d /var/run/avahi-daemon avahi
+ fi
# Ask the bus to reload the config file
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
+ # Restart the daemon
+ sleep 1 && /etc/init.d/avahi-daemon restart
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
Modified: packages/experimental/avahi/debian/changelog
===================================================================
--- packages/experimental/avahi/debian/changelog 2005-09-10 11:51:25 UTC (rev 319)
+++ packages/experimental/avahi/debian/changelog 2005-09-11 11:26:01 UTC (rev 320)
@@ -5,7 +5,8 @@
* Don't build-depend on python2.4-gtk2, it doesn't exist in Debian yet.
* Split out python2.4-avahi
* Add QT3 and QT4 bindings
- * Reload D-BUS configuration files on install
+ * Reload D-BUS configuration files and daemons on install
+ * Move the avahi user's home directory
* Move .pc files to -dev packages
-- Ross Burton <ross at debian.org> Wed, 31 Aug 2005 14:24:38 +0100
More information about the Pkg-utopia-commits
mailing list