Skip to content

Commit 51bb456

Browse files
authored
EOF not detected (#2726)
* Update web-check-install.sh * Update web-check-install.sh * Update web-check-install.sh * Update web-check-install.sh * Update web-check-install.sh * Update web-check-install.sh
1 parent 0e00057 commit 51bb456

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

install/web-check-install.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ network_check
1414
update_os
1515

1616
msg_info "Installing Dependencies"
17+
export DEBIAN_FRONTEND=noninteractive
1718
$STD apt-get -y install --no-install-recommends \
1819
curl \
1920
sudo \
@@ -77,7 +78,7 @@ wget -q "https://github.com/CrazyWolf13/web-check/archive/refs/heads/${RELEASE}.
7778
tar xzf $temp_file
7879
mv web-check-${RELEASE} /opt/web-check
7980
cd /opt/web-check
80-
cat <<EOF > /opt/web-check/.env
81+
cat <<'EOF' > /opt/web-check/.env
8182
CHROME_PATH=/usr/bin/chromium
8283
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
8384
HEADLESS=true
@@ -108,7 +109,7 @@ $STD yarn build --production
108109
msg_ok "Built Web-Check"
109110

110111
msg_info "Creating Service"
111-
cat <<EOF > /opt/run_web-check.sh
112+
cat <<'EOF' > /opt/run_web-check.sh
112113
#!/bin/bash
113114
SCREEN_RESOLUTION="1280x1024x24"
114115
if ! systemctl is-active --quiet dbus; then
@@ -122,7 +123,7 @@ cd /opt/web-check
122123
exec yarn start
123124
EOF
124125
chmod +x /opt/run_web-check.sh
125-
cat <<EOF > /etc/systemd/system/web-check.service
126+
cat <<'EOF' > /etc/systemd/system/web-check.service
126127
[Unit]
127128
Description=Web Check Service
128129
After=network.target

0 commit comments

Comments
 (0)