Update install

This commit is contained in:
ƬHE ЯAW ☣
2022-03-19 03:16:46 +01:00
committed by GitHub
parent b9e7710c9a
commit 88de83eb81
+9 -5
View File
@@ -61,11 +61,6 @@ case "`grep DISTRIB_CODENAME /etc/*-release | awk -F '=' '{print $2}'`" in
cd /opt/nginx-1.21.6 && make -j`nproc`
cd /opt/nginx-1.21.6 && make install
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nginx.service.Focal > /lib/systemd/system/nginx.service
killall nginx
useradd nginx
systemctl daemon-reload
systemctl restart nginx
systemctl enable nginx
# Download Dynamic Modules
cd /nginx/modules && wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/mod/ndk_http_module.so
@@ -94,5 +89,14 @@ case "`grep DISTRIB_CODENAME /etc/*-release | awk -F '=' '{print $2}'`" in
mkdir -p /nginx/live/ && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/default > /nginx/live/default
mkdir -p /hostdata/default/public_html/ && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/index.html > /hostdata/default/public_html/
mkdir -p /hostdata/default/public_html/cdn && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/aes.min.js > /hostdata/default/public_html/cdn/modsec/aes.min.js
# Start
killall nginx
useradd nginx
systemctl daemon-reload
systemctl stop nginx
systemctl start nginx
systemctl enable nginx
;;
esac