bunkerized-nginx/tests/core/db/init/entrypoint.sh

25 lines
510 B
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo " Cloning BunkerWeb Plugins ..."
git clone https://github.com/bunkerity/bunkerweb-plugins.git
echo " Checking out to dev branch ..."
cd bunkerweb-plugins
echo " Extracting ClamAV plugin ..."
cp -r clamav /plugins/
cd ..
echo " Extracting settings.json file, db and core directory ..."
cp bunkerweb/settings.json /bunkerweb/
cp -r bunkerweb/core /bunkerweb/
cp -r bunkerweb/db /bunkerweb/
chown -R root:101 /plugins /bunkerweb
chmod -R 777 /plugins /bunkerweb