diff options
Diffstat (limited to 'packaging/RedHat')
-rw-r--r-- | packaging/RedHat/samba2.spec.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index 73c2a3e985..c99b912382 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 |