From 637a3e59194fa3d3176e200011092167b9c4c2b6 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Sat, 23 Dec 2023 10:25:34 +0000 Subject: [PATCH] Merged rkhunter fix manually --- software.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/software.yml b/software.yml index 03d4ecb2..d096086c 100644 --- a/software.yml +++ b/software.yml @@ -9836,6 +9836,13 @@ softwarePackages: _notes: The _post script removes an entry for VMware with a space in it that causes rkhunter to hiccup _post: | #!/usr/bin/env bash + if [ -d /Applications ] && [ -d /System ]; then + ### macOS + logg info 'Updating file "$(brew --prefix)/Cellar/rkhunter/1.4.6/etc/rkhunter.conf"' && gsed -i "s/^#WEB_CMD.*$/WEB_CMD=curl\ -L/" "$(brew --prefix)/Cellar/rkhunter/1.4.6/etc/rkhunter.conf" + else + ### Linux + logg info 'Updating file /etc/rkhunter.conf' && sed -i "s/^#WEB_CMD.*$/WEB_CMD=curl\ -L/" /etc/rkhunter.conf + fi export PATH="$(echo "$PATH" | sed 's/VMware Fusion.app/VMwareFusion.app/')" sudo rkhunter --propupd || RK_PROPUPD_EXIT_CODE=$? if [ -n "$RK_PROPUPD_EXIT_CODE" ]; then