saving uncommitted changes in /etc prior to dnf run

This commit is contained in:
2023-04-14 01:29:05 +03:00
parent 63e9df51ef
commit 72dfd9177b
11 changed files with 276 additions and 16 deletions

View File

@@ -88,8 +88,8 @@ elif [ "$cron_daily_scan" == "1" ]; then
elif [ -d "/var/customers/webs" ]; then
# froxlor
$inspath/maldet -b -r /var/customers/webs/ $scan_days >> /dev/null 2>&1
elif [ -d "/usr/local/vesta" ]; then
# VestaCP
elif [ -d "/usr/local/vesta" ] || [ -d "/usr/local/hestia" ]; then
# VestaCP or HestiaCP
$inspath/maldet -b -r /home/?/web/?/public_html/,/home/?/web/?/public_shtml/,/home/?/tmp/,/home/?/web/?/private/ $scan_days >> /dev/null 2>&1
elif [ -d "/usr/share/dtc" ]; then
# DTC
@@ -99,7 +99,7 @@ elif [ "$cron_daily_scan" == "1" ]; then
$inspath/maldet -b -r ${conf_hosting_path:-/var/www/sites}/?/?/subdomains/?/html/ $scan_days >> /dev/null 2>&1
else
# cpanel, interworx and other standard home/user/public_html setups
$inspath/maldet -b -r /home?/?/public_html/,/var/www/html/,/usr/local/apache/htdocs/ $scan_days >> /dev/null 2>&1
$inspath/maldet -b -r /home?/?/public_html/,/var/www/,/usr/local/apache/htdocs/ $scan_days >> /dev/null 2>&1
fi
fi