summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-09-04 07:43:50 +0000
committerTim Potter <tpot@samba.org>2001-09-04 07:43:50 +0000
commit90b3dccfd421bac6516c298f85fcccc857c57989 (patch)
tree38cb5d892abfa2d8c345f909b5395147f3d1a382 /packaging
parenteecdba2b015ed48d7dd88daea2af466f28cd2ff7 (diff)
downloadsamba-90b3dccfd421bac6516c298f85fcccc857c57989.tar.gz
samba-90b3dccfd421bac6516c298f85fcccc857c57989.tar.xz
samba-90b3dccfd421bac6516c298f85fcccc857c57989.zip
Don't overwrite an existing /etc/xinetd.d/swat on install file since we
don't overwrite it on upgrade. Does this make sense?
Diffstat (limited to 'packaging')
-rw-r--r--packaging/RedHat/samba2.spec.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index 73c2a3e9851..c99b9123825 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -308,8 +308,8 @@ if [ -f /etc/inetd.conf ]; then
fi
# Add swat entry to xinetd.d if needed.
-if [ -d $RPM_BUILD_ROOT/etc/xinetd.d ]; then
- mv /etc/samba/samba.xinetd /etc/xinetd.d/swat
+if [ -d $RPM_BUILD_ROOT/etc/xinetd.d -a ! -f /etc/xinetd.d/swat ]; then
+ mv /etc/samba/samba.xinetd /etc/xinetd.d/swat
else
rm -f /etc/samba/samba.xinetd
fi