From 72cc0c82c415c872e270d924c795d6ac907a32fb Mon Sep 17 00:00:00 2001 From: Eloy Paris Date: Sun, 1 Jun 2003 04:30:13 +0000 Subject: Bringing packaging/Debian/ up to date with the current Samba package in Debian unstable. The stuff here was ages old... (This used to be commit 5646df8bfb327d74f9c07fc219023a5aecdbc70d) --- packaging/Debian/debian/samba.preinst | 47 ----------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 packaging/Debian/debian/samba.preinst (limited to 'packaging/Debian/debian/samba.preinst') 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 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 -- cgit