Diverse Anpassungen und Bugfixes

This commit is contained in:
hjp 2013-10-25 09:29:12 +00:00
parent 8c6d58eee8
commit e7af75898f
1 changed files with 9 additions and 1 deletions

View File

@ -1,8 +1,15 @@
#!/bin/sh #!/bin/sh
unset PERL_UNICODE
ts_dir=/usr/local/dfstat/quotacheck-timestamps
/usr/local/sbin/quotastat /usr/local/sbin/quotastat
/usr/local/sbin/quotacheck /usr/local/sbin/quotacheck
find /usr/local/dfstat/quotacheck-timestamps -type f -name '*:*:*' -print | sed -e 's/.*\///' -e 's/:/ /g' |
find $ts_dir -type f -name '*:*:*' -mtime +60 -exec rm {} \;
find $ts_dir -type f -name '*:*:*' -print | sed -e 's/.*\///' -e 's/:/ /g' |
while read user mount_t data while read user mount_t data
do do
g="/usr/local/dfstat/quotacheck-graphs/$user${mount_t}_$data.png" g="/usr/local/dfstat/quotacheck-graphs/$user${mount_t}_$data.png"
@ -11,3 +18,4 @@ do
@@@scp@@@ "$g" \ @@@scp@@@ "$g" \
"intra.wsr.ac.at:/usr/local/www/intra/informationssysteme/quotas/$user${mount_t}_$data.png" "intra.wsr.ac.at:/usr/local/www/intra/informationssysteme/quotas/$user${mount_t}_$data.png"
done done
find /usr/local/dfstat/quotacheck-graphs/ -atime +60 -exec rm {} \;