From 1ec0034d5cbf41290b6fef48a3cb82e0a165c521 Mon Sep 17 00:00:00 2001 From: Ze'ev Schurmann Date: Tue, 6 Feb 2024 15:14:05 +0200 Subject: [PATCH] Removed redundant line in logwatch.sh and failedlogins.sh --- failedlogins.sh | 2 -- logwatch.sh | 2 -- 2 files changed, 4 deletions(-) diff --git a/failedlogins.sh b/failedlogins.sh index c743e36..b4d749e 100644 --- a/failedlogins.sh +++ b/failedlogins.sh @@ -38,8 +38,6 @@ function updatelog { fi } -sudo -u $wwwuser php "$nextcloudpath/occ" user:list > /tmp/ncchecknewusers.txt - array=($(cat $nextcloudpath/config/config.php | grep 'datadirectory')) nextcloudfilespath=${array[2]:1:-2} cat $nextcloudfilespath/nextcloud.log | grep '"level":2,' | grep '"Login failed:' > /tmp/ncfailedlogins.tmp diff --git a/logwatch.sh b/logwatch.sh index f903985..26fe7aa 100644 --- a/logwatch.sh +++ b/logwatch.sh @@ -49,8 +49,6 @@ function updatelog { fi } -sudo -u $wwwuser php "$nextcloudpath/occ" user:list > /tmp/ncchecknewusers.txt - array=($(cat $nextcloudpath/config/config.php | grep 'datadirectory')) nextcloudfilespath=${array[2]:1:-2} cp $nextcloudfilespath/nextcloud.log /tmp/nclog.tmp