Skip to content

EOF not detected #2726

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions install/web-check-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ network_check
update_os

msg_info "Installing Dependencies"
export DEBIAN_FRONTEND=noninteractive
$STD apt-get -y install --no-install-recommends \
curl \
sudo \
Expand Down Expand Up @@ -77,7 +78,7 @@ wget -q "https://github.com/CrazyWolf13/web-check/archive/refs/heads/${RELEASE}.
tar xzf $temp_file
mv web-check-${RELEASE} /opt/web-check
cd /opt/web-check
cat <<EOF > /opt/web-check/.env
cat <<'EOF' > /opt/web-check/.env
CHROME_PATH=/usr/bin/chromium
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
HEADLESS=true
Expand Down Expand Up @@ -108,7 +109,7 @@ $STD yarn build --production
msg_ok "Built Web-Check"

msg_info "Creating Service"
cat <<EOF > /opt/run_web-check.sh
cat <<'EOF' > /opt/run_web-check.sh
#!/bin/bash
SCREEN_RESOLUTION="1280x1024x24"
if ! systemctl is-active --quiet dbus; then
Expand All @@ -122,7 +123,7 @@ cd /opt/web-check
exec yarn start
EOF
chmod +x /opt/run_web-check.sh
cat <<EOF > /etc/systemd/system/web-check.service
cat <<'EOF' > /etc/systemd/system/web-check.service
[Unit]
Description=Web Check Service
After=network.target
Expand Down