manual upgrade is same process as install, correct?
Posted: 11 Apr 2015, 13:11
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.
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();