diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee4808c..ad83cc7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,12 +27,8 @@ jobs: cd The-World-Is-Yours/ - name: Build NGINX - env: - 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 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