Fix path issues with db core test init

This commit is contained in:
Théophile Diot 2023-09-20 14:19:43 +02:00
parent c90cd7399a
commit 9e34251824
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06
2 changed files with 1 additions and 5 deletions

View file

@ -8,8 +8,6 @@ echo " Extracting ClamAV plugin ..."
cp -r bunkerweb-plugins/clamav /plugins/
cd ..
echo " Extracting settings.json file, db and core directory ..."
cp bunkerweb/settings.json /bunkerweb/

View file

@ -138,6 +138,7 @@ cleanup_stack () {
# Cleanup stack on exit
trap cleanup_stack EXIT
echo "💾 Initializing workspace ..."
if [ "$integration" == "docker" ] ; then
echo "💾 Creating the bw-docker network ..."
docker network create bw-docker
@ -155,10 +156,7 @@ if [ "$integration" == "docker" ] ; then
exit 1
fi
fi
fi
echo "💾 Initializing workspace ..."
if [ "$integration" == "docker" ] ; then
rm -rf init/plugins init/bunkerweb
mkdir -p init/plugins init/bunkerweb
docker compose -f docker-compose.init.yml up --build