File tree Expand file tree Collapse file tree
scripts/install/tools/security Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ source /usr/local/bin/enginescript/scripts/functions/shared/enginescript-common.
1919# Start Main Script
2020
2121# Maldet Install
22- cd /usr/local/src
22+ cd /usr/local/src || { echo " Error: Failed to change to /usr/local/src " >&2 ; exit 1 ; }
2323download_and_extract " https://www.rfxn.com/downloads/maldetect-current.tar.gz" " /usr/local/src/maldetect-current.tar.gz" " /usr/local/src"
2424cd /usr/local/src/maldetect-* / || { echo " Error: Failed to locate extracted maldetect directory in /usr/local/src" >&2 ; exit 1; }
2525./install.sh || { echo " Error: Maldet installation failed while running install.sh" >&2 ; exit 1; }
26- echo " /sys" >> /usr/local/maldetect/ignore_paths
26+ echo " /sys" >> /usr/local/maldetect/ignore_paths || { echo " Error: Failed to update maldetect ignore_paths " >&2 ; exit 1 ; }
2727
2828print_install_banner " Maldet"
You can’t perform that action at this time.
0 commit comments