mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-15 17:16:12 +02:00
PatchMon: add ssg-content (#16481)
* patchmon: fetch SCAP Security Guide content, bump disk default * patchmon: simplify SCAP content fetch with &&/|| chaining * patchmon: use fetch_and_deploy_gh_release for SCAP content * Reintroduce fetch_and_deploy_gh_release for ssg-content
This commit is contained in:
committed by
GitHub
parent
b183bcc64e
commit
91dd24f38c
@@ -60,6 +60,7 @@ REDIS_PORT=6379
|
||||
# OIDC_ENFORCE_HTTPS=true
|
||||
|
||||
AGENT_BINARIES_DIR=/opt/patchmon/agents
|
||||
SSG_CONTENT_DIR=/opt/patchmon/ssg-content
|
||||
EOF
|
||||
msg_ok "Configured PatchMon"
|
||||
|
||||
@@ -85,6 +86,8 @@ for arch in "${AGENT_NAME[@]}"; do
|
||||
done
|
||||
msg_ok "Fetched PatchMon agent binaries"
|
||||
|
||||
fetch_and_deploy_gh_release "ssg-content" "ComplianceAsCode/content" "prebuild" "latest" "/opt/patchmon/ssg-content" "scap-security-guide-*.tar.gz"
|
||||
|
||||
msg_info "Creating service"
|
||||
cat <<EOF >/etc/systemd/system/patchmon-server.service
|
||||
[Unit]
|
||||
|
||||
Reference in New Issue
Block a user