Removed redundant line in logwatch.sh and failedlogins.sh

This commit is contained in:
Ze'ev Schurmann 2024-02-06 15:14:05 +02:00
parent 6f9f5e7fef
commit 1ec0034d5c
2 changed files with 0 additions and 4 deletions

View File

@ -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

View File

@ -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