8
edits
Changes
only update if larger than current
# check if quotaugidlimit is > 0
if [ ! $INT !== 0 ];
then
# get configfile name
TOTAL=$(($USERC + $GROUPC + 15))
# only change if current value is lower if [ $TOTAL -gt $INT ]; then # set the new quotaugidlimit for container vzctl set $VEID --quotaugidlimit $TOTAL --save fi
fi
fi