New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

How to enable CWP Panel packages auto update

Started by itmonitor, April 13, 2019, 09:24:23 AM

Previous topic - Next topic

itmonitor

Hi, please how to enable packages autoupdate for CWP Panel?

Igor S.

Hi,

Quote from: itmonitor on April 13, 2019, 09:24:23 AM
Hi, please how to enable packages autoupdate for CWP Panel?

what exactly packages would you like auto-updating?



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

itmonitor

The packages listed at CWP>yum manager>List of Available Packages for Update.

Is there a way to set them to update automatically once they are available or alternatively, once per day at a certain hour?

Igor S.

Hi, nope. I do not think so.
But you can add some cronjob (under root user) like the below one:
* * */1 * * yum -y -q update 2>/dev/null



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

puterfixer

But why would you want to enable the automated (and uncontrolled) update of packages? This goes against any good practice in Change Management, whose purpose is to safeguard the well-running state of a Production system. Any change brought into the Production system should have been thoroughly tested in a Quality Assurance or Test environment, which replicates the Production system, but whose failure would not be an issue. Only after you confirmed that an update will not interfere in any way with the OS and the applications running on it, only then should that update be applied in Prod. Otherwise you assume all risks for an update to crash your site or even the server completely. And to apply those automatically, so you don't even see which packages will be installed? I see that you like to live dangerously.

itmonitor

Hi Igor, thank you! :-)

Quote from: Igor S. on April 19, 2019, 11:46:36 AM
Hi, nope. I do not think so.
But you can add some cronjob (under root user) like the below one:
* * */1 * * yum -y -q update 2>/dev/null

itmonitor

Please, what is the code I should add in the crontab to make the server reboot after it had done all the updates?

Quote from: Igor S. on April 19, 2019, 11:46:36 AM
Hi, nope. I do not think so.
But you can add some cronjob (under root user) like the below one:
* * */1 * * yum -y -q update 2>/dev/null

Igor S.

Quote from: itmonitor on April 24, 2019, 07:30:59 AM
Please, what is the code I should add in the crontab to make the server reboot after it had done all the updates?

Quote from: Igor S. on April 19, 2019, 11:46:36 AM
Hi, nope. I do not think so.
But you can add some cronjob (under root user) like the below one:
* * */1 * * yum -y -q update 2>/dev/null

I do not think a reboot required. I would not reboot the server with no emergency reason.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

08Edna

Quote from: Igor S. on April 29, 2019, 05:46:43 AM
Quote from: itmonitor on April 24, 2019, 07:30:59 AM
Please, what is the code I should add in the crontab to make the server reboot after it had done all the updates?

Quote from: Igor S. on April 19, 2019, 11:46:36 AM
Hi, nope. I do not think so.
But you can add some cronjob (under root user) like the below one:
* * */1 * * yum -y -q update 2>/dev/null

I do not think a reboot required. I would not reboot the server with no emergency reason.

This goes against any good practice in Change Management, whose purpose is to safeguard the well-running state of a Production system. Any change brought into the Production system should have been thoroughly tested in a Quality Assurance or Test environment, which replicates the Production system, but whose failure would not be an issue. Only after you confirmed that an update will not interfere in any way with the OS and the applications running on it, only then should that update be applied in Prod.