How to update all packages with a same item value
Hi.
I'm looking for a tip to upgrade all packages, with a new p"ir/ value such MAX_DEFER_FAIL_PERCENTAGE=unlimited to MAX_DEFER_FAIL_PERCENTAGE=30 for example.
In first place I think best way is modify file user in /var/cpanel/packages/ but I don't know how to apply or force reload new values of this files.
Appreciate help
-
use cPanel script, /usr/local/cpanel/scripts/updateuserdomains or /scripts/updateuserdomains after changing the files manually. You could use a search and replace one-liner in loop from commandline to modify the files. Also, the same can be set in tweak settings > mail tab. 0 -
A simple sed command would suffice I'd assume: sed -i 's/unlimited/50/g' /var/cpanel/packages/*0
Please sign in to leave a comment.
Comments
2 comments