Skip to content

Commit e1d8f0f

Browse files
authored
Update maldet.sh
1 parent cc152c6 commit e1d8f0f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/install/tools/security/maldet.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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; }
2323
download_and_extract "https://www.rfxn.com/downloads/maldetect-current.tar.gz" "/usr/local/src/maldetect-current.tar.gz" "/usr/local/src"
2424
cd /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

2828
print_install_banner "Maldet"

0 commit comments

Comments
 (0)