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.
what is the right way to disable Account disk quota “warn” percentage tweak settings via API? I tried
Code:
whmapi1 set_tweaksetting key=emailusers_diskusage_warn_percent value=0
Code:
metadata:
command: set_tweaksetting
reason: Value must be a positive percentage float
result: 0
version: 1
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.
Last edited by a moderator: