Compare commits

..

No commits in common. "263755aa5831c9a90407217bf732c4732b89a649" and "8938437b1e1f34b478015a87e5e03be558057ec7" have entirely different histories.

2 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,8 @@ function updatelog {
fi fi
} }
sudo -u $wwwuser php "$nextcloudpath/occ" user:list > /tmp/ncchecknewusers.txt
array=($(cat $nextcloudpath/config/config.php | grep 'datadirectory')) array=($(cat $nextcloudpath/config/config.php | grep 'datadirectory'))
nextcloudfilespath=${array[2]:1:-2} nextcloudfilespath=${array[2]:1:-2}
cat $nextcloudfilespath/nextcloud.log | grep '"level":2,' | grep '"Login failed:' > /tmp/ncfailedlogins.tmp cat $nextcloudfilespath/nextcloud.log | grep '"level":2,' | grep '"Login failed:' > /tmp/ncfailedlogins.tmp

View File

@ -49,6 +49,8 @@ function updatelog {
fi fi
} }
sudo -u $wwwuser php "$nextcloudpath/occ" user:list > /tmp/ncchecknewusers.txt
array=($(cat $nextcloudpath/config/config.php | grep 'datadirectory')) array=($(cat $nextcloudpath/config/config.php | grep 'datadirectory'))
nextcloudfilespath=${array[2]:1:-2} nextcloudfilespath=${array[2]:1:-2}
cp $nextcloudfilespath/nextcloud.log /tmp/nclog.tmp cp $nextcloudfilespath/nextcloud.log /tmp/nclog.tmp