summaryrefslogtreecommitdiff
path: root/packaging/Debian/debian/samba.preinst
diff options
context:
space:
mode:
authorEloy Paris <peloy@samba.org>2003-06-01 07:12:51 +0000
committerEloy Paris <peloy@samba.org>2003-06-01 07:12:51 +0000
commit57be8ec8ac6158a37bfe78e97e8f05cd3a3bf54d (patch)
tree38a531bc4190daee2f461a6a51f1f5e6abe835cf /packaging/Debian/debian/samba.preinst
parentf6b7bb44a61583a4743767d7ea5e3de5127e0176 (diff)
downloadsamba-57be8ec8ac6158a37bfe78e97e8f05cd3a3bf54d.tar.gz
samba-57be8ec8ac6158a37bfe78e97e8f05cd3a3bf54d.tar.bz2
samba-57be8ec8ac6158a37bfe78e97e8f05cd3a3bf54d.zip
Bringing packaging/Debian/* to a more recent state.
(This used to be commit cd7494a19608f2b4a63b9c654dd8e0a0fc587c39)
Diffstat (limited to 'packaging/Debian/debian/samba.preinst')
-rw-r--r--packaging/Debian/debian/samba.preinst47
1 files changed, 0 insertions, 47 deletions
diff --git a/packaging/Debian/debian/samba.preinst b/packaging/Debian/debian/samba.preinst
deleted file mode 100644
index 6ebefb8fb1..0000000000
--- a/packaging/Debian/debian/samba.preinst
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-#
-# The purpose of the preinst script for the samba package is to help
-# the migration of the conffiles smb.conf and smbpasswd from their
-# old location (/etc/) to their new location (/etc/samba/).
-#
-# Thanks to Ben Pfaff <pfaffben@pilot.msu.edu> for sharing on debian-devel
-# his ideas about how to move conffiles to new locations.
-#
-
-# First see if a smb.conf file currently exists.
-test -f /etc/smb.conf || exit 0
-
-# Now see if a smb.conf file exists in the new location.
-test -e /etc/samba/smb.conf && exit 0
-
-#
-# Move smb.conf conffile from its old location (/etc/) to its new one
-# (/etc/samba).
-#
-# If conffile exists in old location AND conffile does not exist on new
-# location then...
-#
-if [ -f /etc/smb.conf -a ! -e /etc/samba/smb.conf ]; then
- # The new location for the conffile should not exist yet, so we create the
- # dir.
- mkdir -p /etc/samba
-
- # Finally, move the conffile to its new location.
- mv /etc/smb.conf /etc/samba/smb.conf
-fi
-
-#
-# Move smbpasswd conffile from its old location (/etc/) to its new one
-# (/etc/samba).
-#
-# If conffile exists in old location AND conffile does not exist on new
-# location then...
-#
-if [ -f /etc/smbpasswd -a ! -e /etc/samba/smbpasswd ]; then
- # The new location for the conffile should not exist yet, so we create the
- # dir.
- mkdir -p /etc/samba
-
- # Finally, move the conffile to its new location.
- mv /etc/smbpasswd /etc/samba/smbpasswd
-fi