From cb5ae02ea29376658d4f1f757a75dee08a17661c 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: Mon, 10 Feb 2025 22:31:56 +0100 Subject: [PATCH 1/3] Update main.yml --- .github/workflows/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee4808c..bd60867 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,8 +31,6 @@ jobs: CI: "BOT" run: | cd $HOME/The-World-Is-Yours/ - cat build/run.sh - sleep 3000 sudo bash build/run.sh new sudo bash build/run.sh build sudo bash build/run.sh postfix From b84df559704f764af216d51f264456799030bb3c 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: Mon, 10 Feb 2025 22:32:56 +0100 Subject: [PATCH 2/3] Update run.sh --- build/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/run.sh b/build/run.sh index 748f537..9016a7a 100644 --- a/build/run.sh +++ b/build/run.sh @@ -311,7 +311,7 @@ function post_build() { curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nginx/live/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/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 - if [ "$CI" == "BOT" ]; then + if [ -f "/run/.containerenv" ] || [ -f "/.dockerenv" ]; then echo "Skipping systemctl commands on GitHub runner" mkdir -p /etc/systemd/system/ curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/Jammy/nginx.service > /etc/systemd/system/nginx.service From 79442acea997ddbc46737570170534621b0c95ca 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: Mon, 10 Feb 2025 22:33:16 +0100 Subject: [PATCH 3/3] Update main.yml --- .github/workflows/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bd60867..ad83cc7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,8 +27,6 @@ jobs: cd The-World-Is-Yours/ - name: Build NGINX - env: - CI: "BOT" run: | cd $HOME/The-World-Is-Yours/ sudo bash build/run.sh new