Page 1 of 1

manual upgrade is same process as install, correct?

Posted: 11 Apr 2015, 13:11
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();

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

Posted: 11 Apr 2015, 15:22
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.

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

Posted: 18 Jun 2016, 18:38
by rgchurion
If I install over an existing installation csf I lose my configuration?