refactor: webcheck (#14391)

* refactor: webcheck

* Update GitHub repository reference in web-check.sh
This commit is contained in:
Tobias
2026-05-10 23:28:27 +02:00
committed by GitHub
parent 806c68df91
commit 8b387313cf
2 changed files with 12 additions and 17 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ function update_script() {
exit exit
fi 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" msg_info "Stopping Service"
systemctl stop web-check systemctl stop web-check
msg_ok "Stopped Service" msg_ok "Stopped Service"
@@ -38,7 +38,7 @@ function update_script() {
msg_ok "Created backup" msg_ok "Created backup"
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs 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" msg_info "Restoring backup"
mv /opt/.env /opt/web-check mv /opt/.env /opt/web-check
+10 -15
View File
@@ -18,13 +18,10 @@ export DEBIAN_FRONTEND=noninteractive
$STD apt -y install --no-install-recommends \ $STD apt -y install --no-install-recommends \
git \ git \
traceroute \ traceroute \
make \ build-essential \
g++ \
traceroute \
xvfb \ xvfb \
dbus \ dbus \
xorg \ xorg \
xvfb \
gtk2-engines-pixbuf \ gtk2-engines-pixbuf \
dbus-x11 \ dbus-x11 \
xfonts-base \ xfonts-base \
@@ -43,16 +40,13 @@ rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Setup Python3" msg_ok "Setup Python3"
msg_info "Installing Chromium" 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 setup_deb822_repo \
cat <<EOF | sudo tee /etc/apt/sources.list.d/google-chrome.sources >/dev/null "google-chrome" \
Types: deb "https://dl-ssl.google.com/linux/linux_signing_key.pub" \
URIs: http://dl.google.com/linux/chrome/deb/ "http://dl.google.com/linux/chrome/deb/" \
Suites: stable "stable" \
Components: main "main" \
Architectures: amd64 "amd64"
Signed-By: /usr/share/keyrings/google-chrome-keyring.gpg
EOF
$STD apt update
$STD apt -y install \ $STD apt -y install \
chromium \ chromium \
libxss1 \ libxss1 \
@@ -64,13 +58,14 @@ msg_info "Setting up Chromium"
chmod 755 /usr/bin/chromium chmod 755 /usr/bin/chromium
msg_ok "Setup 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)" msg_info "Installing Web-Check (Patience)"
cd /opt/web-check cd /opt/web-check
cat <<'EOF' >/opt/web-check/.env cat <<'EOF' >/opt/web-check/.env
CHROME_PATH=/usr/bin/chromium CHROME_PATH=/usr/bin/chromium
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
PUPPETEER_SKIP_DOWNLOAD='true'
HEADLESS=true HEADLESS=true
GOOGLE_CLOUD_API_KEY='' GOOGLE_CLOUD_API_KEY=''
REACT_APP_SHODAN_API_KEY='' REACT_APP_SHODAN_API_KEY=''