* debian/tests/acceptance: Only stop etcd if DCS is etcd or etcd3.

This commit is contained in:
Michael Banck 2023-01-08 22:03:01 +01:00
parent d1ffa2f934
commit 60c9d2c9de

View file

@ -47,8 +47,11 @@ esac
# ensure no etcd server is running.
if [ $(id -u) -eq 0 ]
then
service etcd stop
service etcd status || true
if [ "$DCS" = "etcd" -o "$DCS" = "etcd3" ]
then
service etcd stop
service etcd status || true
fi
fi
set -x