mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
Added error handler for unsupported fs types
This commit is contained in:
parent
e7efa139ee
commit
42a100cb96
1 changed files with 5 additions and 0 deletions
|
@ -66,6 +66,11 @@ chmod a+x /etc/cron.daily/quotacheck
|
||||||
# Enabling fs quota
|
# Enabling fs quota
|
||||||
if [ ! -z "$(quotaon -pa|grep " $mnt "|grep user|grep 'off')" ]; then
|
if [ ! -z "$(quotaon -pa|grep " $mnt "|grep user|grep 'off')" ]; then
|
||||||
quotaon $mnt
|
quotaon $mnt
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error: quota can't be enabled on $mnt partition"
|
||||||
|
log_event "$E_DISK" "$EVENT"
|
||||||
|
exit $E_DISK
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Updating DISK_QUOTA value
|
# Updating DISK_QUOTA value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue