Fix sessions core test for linux

This commit is contained in:
Théophile Diot 2023-09-23 07:48:47 +01:00
parent 6ae6764f27
commit cff5c77679
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06
2 changed files with 2 additions and 3 deletions

View file

@ -82,7 +82,7 @@ try:
sleep(5)
else:
proc = run(["systemctl", "restart", "bunkerweb"], check=False)
proc = run(["sudo", "systemctl", "restart", "bunkerweb"], check=False)
if proc.returncode != 0:
print(
"❌ An error occurred when restarting BunkerWeb, exiting ...", flush=True

View file

@ -26,7 +26,6 @@ if [ "$integration" = "docker" ] ; then
fi
else
sudo systemctl stop bunkerweb
sudo pip install -r requirements.txt
echo "USE_ANTIBOT=cookie" | sudo tee -a /etc/bunkerweb/variables.env
echo "SESSIONS_SECRET=random" | sudo tee -a /etc/bunkerweb/variables.env
echo "SESSIONS_NAME=random" | sudo tee -a /etc/bunkerweb/variables.env
@ -172,7 +171,7 @@ do
if [ "$integration" == "docker" ] ; then
docker compose -f docker-compose.test.yml up --abort-on-container-exit --exit-code-from tests
else
sudo -E python3 main.py
python3 main.py
fi
if [ $? -ne 0 ] ; then