Add 2 Readme files.
This commit is contained in:
parent
9741149813
commit
6528e19fb1
11
README.cleanup_bruteforce_attempts
Normal file
11
README.cleanup_bruteforce_attempts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# -----
|
||||||
|
# Cleanup table bruteforce_attempts
|
||||||
|
# -----
|
||||||
|
|
||||||
|
DATABASE_NAME='cloud_01'
|
||||||
|
MYSQL_CREDENTIAL_ARGS="--defaults-file=/usr/local/mysql/sys-maint.cnf"
|
||||||
|
|
||||||
|
# Delete entries older than 60 minutes
|
||||||
|
#
|
||||||
|
mysql $MYSQL_CREDENTIAL_ARGS $DATABASE_NAME -N -s \
|
||||||
|
-e "DELETE FROM bruteforce_attempts WHERE occurred < UNIX_TIMESTAMP( DATE_SUB( NOW(), INTERVAL 60 MINUTE));"
|
21
README.set-group-quota
Normal file
21
README.set-group-quota
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# -----
|
||||||
|
# Group Quota
|
||||||
|
# -----
|
||||||
|
|
||||||
|
HTTP_USER=www-data
|
||||||
|
WEB_BASE_DIR="/var/www/cloud-01.oopen.de"
|
||||||
|
NEXTCLOUD_GROUP=BG
|
||||||
|
|
||||||
|
# Set Group Quota
|
||||||
|
#
|
||||||
|
su -c "/usr/local/php/bin/php ${WEB_BASE_DIR}/htdocs/occ groupquota:set $NEXTCLOUD_GROUP 60G" -s /bin/bash $HTTP_USER
|
||||||
|
|
||||||
|
|
||||||
|
# Get Group Quota
|
||||||
|
#
|
||||||
|
su -c "/usr/local/php/bin/php ${WEB_BASE_DIR}/htdocs/occ groupquota:get $NEXTCLOUD_GROUP" -s /bin/bash $HTTP_USER
|
||||||
|
|
||||||
|
|
||||||
|
# Get current quota usage
|
||||||
|
#
|
||||||
|
su -c "/usr/local/php/bin/php ${WEB_BASE_DIR}/htdocs/occ groupquota:used $NEXTCLOUD_GROUP" -s /bin/bash $HTTP_USER
|
Loading…
Reference in New Issue
Block a user