[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 #!/bin/bash 2 # convertit les quotas xfs au format attendu par samba4.1 3 user=$3 4 mnt=$(stat -c %m -- $(pwd)) 5 RET=$(xfs_quota -x -c "quota -bi -N -u $user" $mnt 2>/dev/null) && \ 6 if [ -n "$RET" ]; then 7 echo $RET | awk '{ gsub (/\[(([0-9]*) days)\]/,""); gsub (/\[-*\]/,""); print "2 "$2" "$3" "$4" "$6" "$7" "$8" 1024" }' 8 exit 0 9 fi 10 echo "2 0 0 0 0 0 0 1024" 11 exit 0
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |