1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

Don't overwrite an existing /etc/xinetd.d/swat on install file since we

don't overwrite it on upgrade.

Does this make sense?
This commit is contained in:
Tim Potter -
parent eecdba2b01
commit 90b3dccfd4

View File

@ -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