mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	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
This commit is contained in:
		@@ -14,6 +14,7 @@ network_check
 | 
				
			|||||||
update_os
 | 
					update_os
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Installing Dependencies"
 | 
					msg_info "Installing Dependencies"
 | 
				
			||||||
 | 
					export DEBIAN_FRONTEND=noninteractive
 | 
				
			||||||
$STD apt-get -y install --no-install-recommends \
 | 
					$STD apt-get -y install --no-install-recommends \
 | 
				
			||||||
  curl \
 | 
					  curl \
 | 
				
			||||||
  sudo \
 | 
					  sudo \
 | 
				
			||||||
@@ -77,7 +78,7 @@ wget -q "https://github.com/CrazyWolf13/web-check/archive/refs/heads/${RELEASE}.
 | 
				
			|||||||
tar xzf $temp_file
 | 
					tar xzf $temp_file
 | 
				
			||||||
mv web-check-${RELEASE} /opt/web-check
 | 
					mv web-check-${RELEASE} /opt/web-check
 | 
				
			||||||
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
 | 
				
			||||||
HEADLESS=true
 | 
					HEADLESS=true
 | 
				
			||||||
@@ -108,7 +109,7 @@ $STD yarn build --production
 | 
				
			|||||||
msg_ok "Built Web-Check"
 | 
					msg_ok "Built Web-Check"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Creating Service"
 | 
					msg_info "Creating Service"
 | 
				
			||||||
cat <<EOF > /opt/run_web-check.sh
 | 
					cat <<'EOF' > /opt/run_web-check.sh
 | 
				
			||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
SCREEN_RESOLUTION="1280x1024x24"
 | 
					SCREEN_RESOLUTION="1280x1024x24"
 | 
				
			||||||
if ! systemctl is-active --quiet dbus; then
 | 
					if ! systemctl is-active --quiet dbus; then
 | 
				
			||||||
@@ -122,7 +123,7 @@ cd /opt/web-check
 | 
				
			|||||||
exec yarn start
 | 
					exec yarn start
 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
chmod +x /opt/run_web-check.sh
 | 
					chmod +x /opt/run_web-check.sh
 | 
				
			||||||
cat <<EOF > /etc/systemd/system/web-check.service
 | 
					cat <<'EOF' > /etc/systemd/system/web-check.service
 | 
				
			||||||
[Unit]
 | 
					[Unit]
 | 
				
			||||||
Description=Web Check Service
 | 
					Description=Web Check Service
 | 
				
			||||||
After=network.target
 | 
					After=network.target
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user