Cronmaster: fix unexpected EOF in update_cronmaster script (#14420)

The heredoc used <<EOF (unquoted), causing the \ inside it
to be executed during installation. This embedded the entire cronmaster.sh
source (~250 lines) into the update script, which contained backtick-style
constructs that caused 'unexpected EOF while looking for matching backtick'
at line 44 when the update script was later run.

Use <<'EOF' so the literal \ text is written to the file.
This commit is contained in:
CanbiZ (MickLesk)
2026-05-11 22:03:46 +02:00
committed by GitHub
parent 2fddbd9c67
commit b15e84e2ba

View File

@@ -147,7 +147,7 @@ EOF
# Create update script
msg_info "Creating update script"
ensure_usr_local_bin_persist
cat <<EOF >/usr/local/bin/update_cronmaster
cat <<'EOF' >/usr/local/bin/update_cronmaster
#!/usr/bin/env bash
# CronMaster Update Script
type=update bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/cronmaster.sh)"