manual upgrade is same process as install, correct?

Post Reply
aww+
Junior Member
Posts: 105
Joined: 27 Aug 2012, 20:53

manual upgrade is same process as install, correct?

Post by aww+ »

Because of OVH's bug with blocking download.configserver I need to manually upgrade our servers.

Just wanted to be certain the install.sh is smart and can determine upgrade vs install by itself.

Looking at the source in CSF, it appears so, but just wanted to double check I wasn't missing any environmental variables, etc. before I accidentally clobber something. And it looks like csf+lfd should be restarted after upgrade manually?

BTW it would be fascinating if you published downloads per day since it would be anonymous.

Code: Select all

              print "Retrieving new csf package...\n";

                        my $url = "https://download.configserver.com/csf.tgz";
                        if ($config{URLGET} == 1) {$url = "http://download.configserver.com/csf.tgz";}
                        my ($status, $text) = &urlget($url,"/usr/src/csf.tgz");

                        if (! -z "/usr/src/csf/csf.tgz") {
                                print "\nUnpacking new csf package...\n";
                                system ("cd /usr/src ; tar -xzf csf.tgz ; cd csf ; sh install.sh");
                                print "\nTidying up...\n";
                                system ("rm -Rfv /usr/src/csf*");
                                print "\nRestarting csf and lfd...\n";
                                system ("/usr/sbin/csf -r");
                                ConfigServer::Service::restartlfd();
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: manual upgrade is same process as install, correct?

Post by ForumAdmin »

You can upgrade by simply doing an install over the top using the normal instructions:
http://download.configserver.com/csf/install.txt

This applies to any of our products and the will correctly maintain configurations.
rgchurion
Junior Member
Posts: 1
Joined: 18 Jun 2016, 18:34

Re: manual upgrade is same process as install, correct?

Post by rgchurion »

If I install over an existing installation csf I lose my configuration?
Post Reply