Skip to content

Commit

Permalink
Update magenx.install.latest.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
magenx authored Jul 18, 2022
1 parent 1d01ed3 commit 083ee62
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions magenx.install.latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1765,16 +1765,6 @@ echo -e "${MAGENTO_WEB_ROOT_PATH%/*}" > /usr/local/maldetect/monitor_paths

maldet --monitor /usr/local/maldetect/monitor_paths
echo
GREENTXT "MAGENTO MALWARE SCANNER"
YELLOWTXT "Hourly cronjob created"
pip3 -q install --no-cache-dir --upgrade mwscan
cat > /etc/cron.hourly/mwscan <<END
#!/bin/sh
## MAGENTO MALWARE SCANNER
mwscan --newonly --quiet ${MAGENTO_WEB_ROOT_PATH} | ts | tee -a /var/log/mwscan.log | ifne mailx -s "Malware found at $(hostname)" ${MAGENTO_ADMIN_EMAIL}
END
chmod +x /etc/cron.hourly/mwscan
echo
GREENTXT "AUDIT MAGENTO FILES AND FOLDERS"
cat >> /etc/audit/rules.d/audit.rules <<END
Expand Down

0 comments on commit 083ee62

Please sign in to comment.