Disable Account disk quota warn percentage
Hello,
what is the right way to disable Account disk quota "warn" percentage tweak settings via API? I tried
but output is
Found the following notes, too: 1. If this value is 0 when your server validates the cpanel.config file, the system converts it to undef. 2. emailusers_diskusage_warn_percent: label: 'Account disk quota “warn” percentage' help: 'The disk quota percentage at which an account enters the “warn” state. An email notification will be sent to the user.' undef: Disabled So how can I set it to undef? Thanks.
whmapi1 set_tweaksetting key=emailusers_diskusage_warn_percent value=0but output is
metadata:
command: set_tweaksetting
reason: Value must be a positive percentage float
result: 0
version: 1Found the following notes, too: 1. If this value is 0 when your server validates the cpanel.config file, the system converts it to undef. 2. emailusers_diskusage_warn_percent: label: 'Account disk quota “warn” percentage' help: 'The disk quota percentage at which an account enters the “warn” state. An email notification will be sent to the user.' undef: Disabled So how can I set it to undef? Thanks.
-
Hey there! I reached out to the developers and confirmed there isn't an API call that can make this change. You can do this through the interface directly or you can just remove all entries after "system_diskusage_warn_percent" so there is no "=" or any value in the /var/cpanel/cpanel.config file. 0 -
Thanks for the explanation. Another question: Is there a way to disable user disk usage notifications but admin notifications to be active? When "Account disk quota "warn" percentage" is set to Disabled, then "Notify admin or reseller when disk quota reaches "warn" state" is inactive and set to off. Overall I want only admin/reseller receive notifications on disk usage warning and critical levels. Suggestions? 0 -
I currently don't have a tool available for that. If you'd like to submit a feature request for that using the link in my signature, I'll bring it up with the team next week! 0
Please sign in to leave a comment.
Comments
3 comments