summaryrefslogtreecommitdiff
path: root/packaging/Debian/debian/samba.prerm
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-07-16 05:34:56 +0000
committerGerald Carter <jerry@samba.org>2003-07-16 05:34:56 +0000
commit4a090ba06a54f5da179ac02bb307cc03d08831bf (patch)
treeed652ef36be7f16682c358816334f969a22f1c27 /packaging/Debian/debian/samba.prerm
parent95fe82670032a3a43571b46d7bbf2c26bc8cdcd9 (diff)
downloadsamba-4a090ba06a54f5da179ac02bb307cc03d08831bf.tar.gz
samba-4a090ba06a54f5da179ac02bb307cc03d08831bf.tar.bz2
samba-4a090ba06a54f5da179ac02bb307cc03d08831bf.zip
trying to get HEAD building again. If you want the code
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE (This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
Diffstat (limited to 'packaging/Debian/debian/samba.prerm')
-rw-r--r--packaging/Debian/debian/samba.prerm19
1 files changed, 0 insertions, 19 deletions
diff --git a/packaging/Debian/debian/samba.prerm b/packaging/Debian/debian/samba.prerm
index 6a4a8a4b4b..ab62c706d8 100644
--- a/packaging/Debian/debian/samba.prerm
+++ b/packaging/Debian/debian/samba.prerm
@@ -1,24 +1,5 @@
#!/bin/sh -e
-# Clean up any such stale file.
-rm -f /tmp/samba-was-not-running
-
-# The smbd pid file is missing, or points to a dead process
-if [ ! -f /var/run/samba/smbd.pid ] || \
- ! ps h `cat /var/run/samba/smbd.pid` > /dev/null
-then
- # The nmbd pid file is missing, or points to a dead process
- if [ -f /var/run/samba/nmbd.pid ] || \
- ! ps h `cat /var/run/samba/nmbd.pid` > /dev/null
- then
- # let the postinst know not to start samba.
- [ "$1" = "upgrade" ] && touch /tmp/samba-was-not-running
- fi
-fi
-
-# We call the init script to stop Samba, even if it only affects nmbd.
-[ -x /etc/init.d/samba ] && /etc/init.d/samba stop
-
if [ "$1" = upgrade -a -n "$2" ] && dpkg --compare-versions "$2" lt 2.99 \
&& [ -e /var/lib/samba/passdb.tdb -a ! -e /etc/samba/smbpasswd ]
then