| | |
| | | /*
|
| | | * Do the update
|
| | | */
|
| | | exec("aptitude update");
|
| | | exec("aptitude safe-upgrade -y");
|
| | |
|
| | | //TODO : change this when distribution information has been integrated into server record
|
| | | if(file_exists('/etc/gentoo-release')) {
|
| | | exec("glsa-check -f --nocolor affected");
|
| | | }
|
| | | else {
|
| | | exec("aptitude update");
|
| | | exec("aptitude upgrade -y");
|
| | | exec("aptitude safe-upgrade -y");
|
| | | }
|
| | |
|
| | | /*
|
| | |
| | | exec("tar xvfz ISPConfig-" . $new_version . ".tar.gz");
|
| | |
|
| | | /*
|
| | | * Start the automated update
|
| | | * Initialize the automated update
|
| | | * (the update is then done next start of server.sh
|
| | | */
|
| | | chdir("/tmp/ispconfig3_install/install");
|
| | | exec("touch autoupdate");
|
| | | exec("php -q autoupdate.php");
|
| | |
|
| | | |
| | | /*
|
| | | * do some clean-up
|
| | | */
|
| | | exec("rm /tmp/ISPConfig-" . $new_version . ".tar.gz");
|
| | | exec("rm /tmp/ispconfig3_install -R");
|
| | |
|
| | | /*
|
| | | * go back to the "old path"
|