summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>1999-05-12 20:11:29 +0000
committerJohn Terpstra <jht@samba.org>1999-05-12 20:11:29 +0000
commitd04d050d723bdabf4a221a5f24e940d520e94d9e (patch)
tree13f5cf102563c3b44a52386296bf8947d46d16d9
parentf59c52420511ae1b10db17f4b10adb4bde836954 (diff)
downloadsamba-d04d050d723bdabf4a221a5f24e940d520e94d9e.tar.gz
Modified post install script so xtoi is run only if /etc/xinetd.conf exists.
-rw-r--r--packaging/PHT/TurboLinux/samba2.spec.tmpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl
index 6879acfda51..2d5601503da 100644
--- a/packaging/PHT/TurboLinux/samba2.spec.tmpl
+++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl
@@ -235,12 +235,14 @@ fi
# Add swat entry to /etc/inetd.conf if needed
if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then
echo 'swat stream tcp nowait.400 root /usr/sbin/swat swat' >> /etc/inetd.conf
-killall -1 inetd || :
+ killall -1 inetd || :
fi
# Now create the xinetd.conf file from our inetd.conf file, back up orig first.
-mv /etc/xinetd.conf /etc/xinetd.conf.presamba
-/usr/sbin/itox --daemon_dir /usr/sbin < /etc/inetd.conf > /etc/xinetd.conf
+if [ -f /etc/xinetd.conf ]; then
+ mv /etc/xinetd.conf /etc/xinetd.conf.presamba
+ /usr/sbin/itox --daemon_dir /usr/sbin < /etc/inetd.conf > /etc/xinetd.conf
+fi
%preun
if [ $1 = 0 ] ; then