From 710daf1475100c7f613d9bf913669778f5c03bf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9D=93=99=F0=9D=93=BE=F0=9D=93=B5=F0=9D=93=B2?= =?UTF-8?q?=F0=9D=93=B8?= Date: Sun, 9 Feb 2025 18:26:42 +0100 Subject: [PATCH] Update run.sh --- build/run.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/run.sh b/build/run.sh index 4a79419..8404fd2 100644 --- a/build/run.sh +++ b/build/run.sh @@ -312,6 +312,13 @@ function post_build() { 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/index.html mkdir -p /hostdata/default/public_html/cdn/modsec && 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 curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/Jammy/nginx.service > /etc/systemd/system/nginx.service + if [ "$CI" == "true" ]; then + echo "Skipping systemctl commands on GitHub runner" + else + systemctl daemon-reload + systemctl start nginx.service + systemctl enable nginx.service + fi systemctl daemon-reload; systemctl start nginx.service && systemctl enable nginx.service }