ansible-roles/smartgears/accounting_rstudio_se_plugin/templates/calculate_home_space.j2

10 lines
226 B
Plaintext
Raw Normal View History

#!/bin/bash
DEST_FILE={{ accounting_rstudio_quota_dest_file }}
mkdir -p {{ accounting_rstudio_quota_dest_dir }}
> $DEST_FILE
cd /home ; for h in $( /bin/ls -1 . | grep -v gcube ) ; do du -s ${h} >> $DEST_FILE ; done
exit 0