Author Topic: Disable auto-updater  (Read 28505 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
Disable auto-updater
« on: April 12, 2015, 12:48:01 PM »
How can i disable it? I want to do it manually when i feel right.

I'm making changes on my server (installing and configuring other things), and i don't want an update to destroy my configurations.

Offline
***
Re: Disable auto-updater
« Reply #1 on: April 13, 2015, 03:35:17 AM »
My first suggestion is to block by iptables/csf all the comunnication with centos-webpanel.com

Im not sure if you can also chmod cwp core files with readonly.

The whole configuration is not at one location. Some of the software are 3rd party then located anywhere. (csf, mail, named, etc...)

Also im not really sure about what do you mean with "destroy my configurations.".
Do you mean a concrete config, or just talking about "all".

Consider to use Rsync with a remote machine. You'll be able to restore it with easy.

No idea about a button.
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

Offline
**
Re: Disable auto-updater
« Reply #2 on: April 13, 2015, 12:41:40 PM »
I had an update that made my email server stop working correctly and i was not able to receive email and not able to fix the problem. That's a good idea, firewall-wise.
But i believe there's an cronjob that does it, but i'm not sure how to locate that and i believe its this:

*/1 * * * * root /usr/local/rtm/bin/rtm 3 > /dev/null 2> /dev/null

Re: Disable auto-updater
« Reply #3 on: April 15, 2015, 12:19:07 PM »
I would never disable automated update. Just 1% of my thought.

Offline
**
Re: Disable auto-updater
« Reply #4 on: April 16, 2015, 09:06:54 PM »
I would never disable automated update. Just 1% of my thought.

Why? I got to know that updates sometimes change configurations and take ssh commands without my command, and that can ruin my server and at the moment i don't have time to fix problems :(

Offline
***
Re: Disable auto-updater
« Reply #5 on: April 24, 2015, 08:26:32 PM »
I agree with VOLUNTARY upgrade. I prefer the things than i can fire when i like to do.
Like doublecheck the things too.

Even if you configure rsync... what happend if few hours/days ago the remote server stop working and you fuckup your hosting because autoupdate? Then you cry.

I guess my web server is important enough to check before big changes.

pedromidiasf There's no
Code: [Select]
/usr/local/rtm/bin/rtm FILE at CWP.
The rtm it's a real time monitoring tool. I guess you are running a OVH VPS (http://guias.ovh.es/RealTimeMonitoring).

So this cron job is nothing about update CWP.

to DEVELOPER: Do we have a easy way to do that?
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

Offline
**
Re: Disable auto-updater
« Reply #6 on: April 24, 2015, 08:39:02 PM »
Yes i'm running OVH but with a dedicated server.

I edited this:
  /etc/cron.daily/cwp
and commented this line
  # (bla bla bla) /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php

And I'm still having daily backups (files and databases) and no update so far.
And the cronjob emails are not referring updates
It looks like it's working :)

----
But i don't recommend you to activate it in the future because you might be doing a semi-update that might ruin your server.
But maybe i'm wrong, i don't know how the updates are being made
« Last Edit: April 26, 2015, 05:38:21 PM by pedromidiasf »

Offline
***
Re: Disable auto-updater
« Reply #7 on: May 01, 2015, 07:23:42 PM »
Even if the code of cron.php is not readable, non https connections can be readed/interpreted just watching traffic.

I think cron.php does more than just try update, but im not sure just now.

I'd prefer to wait for a developer/admin/moderator answer instead lost time playing that.
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

Offline
*
Re: Disable auto-updater
« Reply #8 on: May 25, 2015, 11:44:45 AM »
main function of the cron script is to check updates,  but if you disable updates and then after some time enable them, then you will go to the last update immediately and loose all update changes between and that can cause issues with your server.

In short you have two options
1. permanently disable updates
2. leave live updates
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

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


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


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
**
Re: Disable auto-updater
« Reply #9 on: May 26, 2015, 05:39:34 PM »
oh ok, then I'll leave it disabled.
It's working perfectly for what i need :)

Thanks admin for letting me know

Offline
***
Re: Disable auto-updater
« Reply #10 on: June 05, 2015, 03:58:05 PM »
interpreting this statement "main function of the cron script is to check updates" i can know that the cron.php does more than just update haha. Don't?

main has implicit the fact of more actions inside this file.
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

Offline
*
Re: Disable auto-updater
« Reply #11 on: November 11, 2016, 08:54:26 AM »
I believe there are two reliable methods built-in to cwp.

1) Firewall Configuration: /etc/csf/csf.conf
There is a directive/setting labeled AUTO_UPDATES set to 1 by default. Change this to 0.

2) CWP Scripts
I have not attepted this method but according to cwp wiki there are scripts. One of these scripts is labeled update_cwp. This may just pertain to the core but there are others as well. It may be worth looking into.

----------------------------------------
CentOS Web Panel has also scripts folder to help you with the upgrades or additional tool installations.
For all of you liking to work in a shell we are preparing additional scripts list.

Available Scripts with the latest version
update_cwp //Update CWP to the latest version
upgrade_mysql //Upgrade phpMyAdmin and MySQL to 5.5
install_imagick //Installs Image Magick
install_maldet //Installs Maldet
install_net2ftp //Installs Net2FTP, Usage http://IP/net2ftp
user_backup //Create User backup, Usage: sh /scripts/user_backup USERNAME
whoowns //Get Domain owner, Usage: sh /scripts/whoowns DOMAIN
list_users //List all user accounts
list_domains //List all addon domains
list_subdomains //List all Sub-Domains
cwp_bruteforce_protection //Enable CSF/LFD Brute/Force protection
mysql_pwd_reset //Reset root MySQL password

Usage
sh /scripts/SCRIPT-NAME
/scripts/SCRIPT-NAME

…many others coming soon

Source: http://wiki.centos-webpanel.com/cwp-scripts

---------------------

Currently running
Distro Name: CentOS release 6.8 (Final)
Kernel Version: 2.6.32-642.6.1.el6.i686
CWP version: 0.9.8.82
« Last Edit: November 11, 2016, 09:00:40 AM by codesigns »

Offline
***
Re: Disable auto-updater
« Reply #12 on: March 28, 2017, 03:09:22 AM »
I come to this topic because I also want to disable the auto-update, this process usually break my custom configuration on my production server. Here is how you disable the updater:

nano /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp

put # at beginning of each lines in it

Offline
*
Re: Disable auto-updater
« Reply #13 on: November 30, 2017, 01:56:38 PM »
so it looks like there are two methods here:

1. disable AUTO_UPDATES in /etc/csf/csf.conf
2. comment out  /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp

Which one works to disable update?  Thanks!

Offline
*
Re: Disable auto-updater
« Reply #14 on: April 01, 2018, 09:39:31 AM »
so it looks like there are two methods here:

1. disable AUTO_UPDATES in /etc/csf/csf.conf
2. comment out  /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp

Which one works to disable update?  Thanks!
i have already do this view day ago, but update will be start again, and make for issues with web server nginx break all website
- anyone know how disable update permanently ?
- or how to use update only when needed ? (like cPanel)