diff options
author | Tim Potter <tpot@samba.org> | 2001-09-04 07:43:50 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-09-04 07:43:50 +0000 |
commit | b5b9c46c0fa3a98999f5afbda497e88a6d319151 (patch) | |
tree | b52731dd40e48d9b32d4178d2d074d6a28aee772 /packaging/RedHat | |
parent | 8c569f70eec7ea2d24f0611c5c1851d0dc87b379 (diff) | |
download | samba-b5b9c46c0fa3a98999f5afbda497e88a6d319151.tar.gz samba-b5b9c46c0fa3a98999f5afbda497e88a6d319151.tar.bz2 samba-b5b9c46c0fa3a98999f5afbda497e88a6d319151.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?
(This used to be commit 90b3dccfd421bac6516c298f85fcccc857c57989)
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 |