22 lines
531 B
Plaintext
22 lines
531 B
Plaintext
# -----
|
|
# 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
|