Fix linux redis test by stopping redis service properly

This commit is contained in:
Théophile Diot 2024-01-25 12:34:25 +01:00
parent 09873a3ed0
commit e292cb8a32
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -154,6 +154,7 @@ cleanup_stack () {
unset REDIS_PORT
unset REDIS_DATABASE
unset REDIS_SSL
sudo systemctl stop redis
sudo killall redis-server
fi
sudo rm -rf acl tls
@ -237,6 +238,7 @@ do
export REDIS_USERNAME="bunkerweb"
echo "🧰 Stopping redis ..."
sudo systemctl stop redis
sudo killall redis-server
# shellcheck disable=SC2181
if [ $? -ne 0 ] ; then
@ -279,6 +281,7 @@ do
export REDIS_SSL="yes"
echo "🧰 Stopping redis ..."
sudo systemctl stop redis
sudo killall redis-server
# shellcheck disable=SC2181
if [ $? -ne 0 ] ; then