bunkerweb/examples/reverse-proxy-singlesite/setup-linux.sh

12 lines
308 B
Bash
Raw Normal View History

2022-08-17 12:01:18 +00:00
#!/bin/bash
if [ $(id -u) -ne 0 ] ; then
echo "❌ Run me as root"
exit 1
fi
mkdir /opt/bunkerweb/www/{app1,app2}
echo "hello" > /opt/bunkerweb/www/app1/index.html
echo "hello" > /opt/bunkerweb/www/app2/index.html
cp -r bw-data/configs/* /opt/bunkerweb/configs
2022-08-22 14:12:47 +00:00
chown -R nginx:nginx /opt/bunkerweb/configs