mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
check ncdata, nothing else
This commit is contained in:
parent
b3466adb3a
commit
768c442684
@ -16,12 +16,12 @@ debug_mode
|
||||
# Must be root
|
||||
root_check
|
||||
|
||||
if [ -d /dev/mapper/ ]
|
||||
if [ -d $NCDATA ]
|
||||
then
|
||||
if [ "$(df -h /dev/mapper/*--vg-root | awk '{print $5}' | tail -1 | cut -d "%" -f1)" -gt 90 ]
|
||||
if [ "$(df -h ncdata | awk '{print $5}' | tail -1 | cut -d "%" -f1)" -gt 90 ]
|
||||
then
|
||||
# Notify user
|
||||
# notify_user_gui "Disk space almost full!" "The disk space for /dev/mapper/*--vg-root is almost full. We have automatically deleted ZFS snapshots older than 8 weeks to free up some space. Please check $VMLOGS/zfs_prune.log for the results."
|
||||
# notify_user_gui "Disk space almost full!" "The disk space for ncdata is almost full. We have automatically deleted ZFS snapshots older than 8 weeks to free up some space. Please check $VMLOGS/zfs_prune.log for the results."
|
||||
# On screen information
|
||||
msg_box "Your disk space is almost full (more than 90%).\n\nTo solve that, we will now delete ZFS snapshots older than 8 weeks to free up some space."
|
||||
countdown "To abort, please press CTRL+C within 10 seconds." 10
|
||||
|
||||
Loading…
Reference in New Issue
Block a user