Compare commits

...

4 Commits

Author SHA1 Message Date
CanbiZ (MickLesk) 65b18d8945 Reintroduce fetch_and_deploy_gh_release for ssg-content 2026-08-14 19:15:29 +02:00
MickLesk fad1773fe3 patchmon: use fetch_and_deploy_gh_release for SCAP content 2026-08-14 10:05:45 +02:00
MickLesk 6b8cf490e0 patchmon: simplify SCAP content fetch with &&/|| chaining 2026-08-14 10:00:51 +02:00
MickLesk fe6e395fc8 patchmon: fetch SCAP Security Guide content, bump disk default 2026-08-14 09:29:46 +02:00
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ APP="PatchMon"
var_tags="${var_tags:-monitoring}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-4}"
var_disk="${var_disk:-8}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
@@ -76,6 +76,7 @@ EOF
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "PatchMon" "PatchMon/PatchMon" "singlefile" "latest" "/opt/patchmon" "patchmon-server-linux-$(arch_resolve)"
mv /opt/patchmon/PatchMon /opt/patchmon/patchmon-server
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ssg-content" "ComplianceAsCode/content" "prebuild" "latest" "/opt/patchmon/ssg-content" "scap-security-guide-*.tar.gz"
restore_backup
+3
View File
@@ -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]