mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
Fix sessions core test for linux
This commit is contained in:
parent
6ae6764f27
commit
cff5c77679
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue