From 8b387313cf35b416af3cad039ff2c422b1cb9efe Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Sun, 10 May 2026 23:28:27 +0200 Subject: [PATCH] refactor: webcheck (#14391) * refactor: webcheck * Update GitHub repository reference in web-check.sh --- ct/web-check.sh | 4 ++-- install/web-check-install.sh | 25 ++++++++++--------------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/ct/web-check.sh b/ct/web-check.sh index 16dd05cc1..008ca76ad 100644 --- a/ct/web-check.sh +++ b/ct/web-check.sh @@ -28,7 +28,7 @@ function update_script() { exit fi - if check_for_gh_release "web-check" "CrazyWolf13/web-check"; then + if check_for_gh_release "web-check" "Lissy93/web-check"; then msg_info "Stopping Service" systemctl stop web-check msg_ok "Stopped Service" @@ -38,7 +38,7 @@ function update_script() { msg_ok "Created backup" NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "web-check" "CrazyWolf13/web-check" "tarball" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "web-check" "Lissy93/web-check" "tarball" msg_info "Restoring backup" mv /opt/.env /opt/web-check diff --git a/install/web-check-install.sh b/install/web-check-install.sh index 751992e51..20f08c3dd 100644 --- a/install/web-check-install.sh +++ b/install/web-check-install.sh @@ -18,13 +18,10 @@ export DEBIAN_FRONTEND=noninteractive $STD apt -y install --no-install-recommends \ git \ traceroute \ - make \ - g++ \ - traceroute \ + build-essential \ xvfb \ dbus \ xorg \ - xvfb \ gtk2-engines-pixbuf \ dbus-x11 \ xfonts-base \ @@ -43,16 +40,13 @@ rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED msg_ok "Setup Python3" msg_info "Installing Chromium" -curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/google-chrome-keyring.gpg -cat </dev/null -Types: deb -URIs: http://dl.google.com/linux/chrome/deb/ -Suites: stable -Components: main -Architectures: amd64 -Signed-By: /usr/share/keyrings/google-chrome-keyring.gpg -EOF -$STD apt update +setup_deb822_repo \ + "google-chrome" \ + "https://dl-ssl.google.com/linux/linux_signing_key.pub" \ + "http://dl.google.com/linux/chrome/deb/" \ + "stable" \ + "main" \ + "amd64" $STD apt -y install \ chromium \ libxss1 \ @@ -64,13 +58,14 @@ msg_info "Setting up Chromium" chmod 755 /usr/bin/chromium msg_ok "Setup Chromium" -fetch_and_deploy_gh_release "web-check" "CrazyWolf13/web-check" "tarball" +fetch_and_deploy_gh_release "web-check" "Lissy93/web-check" "tarball" msg_info "Installing Web-Check (Patience)" cd /opt/web-check cat <<'EOF' >/opt/web-check/.env CHROME_PATH=/usr/bin/chromium PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium +PUPPETEER_SKIP_DOWNLOAD='true' HEADLESS=true GOOGLE_CLOUD_API_KEY='' REACT_APP_SHODAN_API_KEY=''