|
|
|
|
@@ -66,10 +66,11 @@ if (Froxlor::isFroxlorVersion('0.10.38.3')) {
|
|
|
|
|
KEY customerid (customerid)
|
|
|
|
|
) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;";
|
|
|
|
|
Database::query($sql);
|
|
|
|
|
Database::query("SET SESSION innodb_strict_mode=OFF;");
|
|
|
|
|
// new customer allowed_mysqlserver field
|
|
|
|
|
Database::query("ALTER TABLE `" . TABLE_PANEL_CUSTOMERS . "` ADD `allowed_mysqlserver` text NOT NULL;");
|
|
|
|
|
Database::query("ALTER TABLE `" . TABLE_PANEL_CUSTOMERS . "` CHANGE COLUMN `allowed_phpconfigs` `allowed_phpconfigs` text NOT NULL;");
|
|
|
|
|
Database::query("ALTER TABLE `" . TABLE_PANEL_CUSTOMERS . "` CHANGE COLUMN `customernumber` `customernumber` varchar(100) NOT NULL default '';");
|
|
|
|
|
Database::query("ALTER TABLE `" . TABLE_PANEL_CUSTOMERS . "` CHANGE COLUMN `allowed_phpconfigs` `allowed_phpconfigs` text NOT NULL;");
|
|
|
|
|
Database::query("ALTER TABLE `" . TABLE_PANEL_CUSTOMERS . "` ADD `allowed_mysqlserver` text NOT NULL;");
|
|
|
|
|
$has_customer_table_update_200 = true;
|
|
|
|
|
// ftp_users adjustments
|
|
|
|
|
Database::query("ALTER TABLE `" . TABLE_FTP_USERS . "` CHANGE COLUMN `password` `password` varchar(255) NOT NULL default '';");
|
|
|
|
|
@@ -210,7 +211,7 @@ if (Froxlor::isDatabaseVersion('202211030')) {
|
|
|
|
|
$newCronBin = Froxlor::getInstallDir().'/bin/froxlor-cli';
|
|
|
|
|
$compCron = <<<EOF
|
|
|
|
|
<?php
|
|
|
|
|
chmod($newCronBin, 0755);
|
|
|
|
|
chmod('$newCronBin', 0755);
|
|
|
|
|
// re-create cron.d configuration file
|
|
|
|
|
exec('$newCronBin froxlor:cron -r 99');
|
|
|
|
|
exit;
|
|
|
|
|
@@ -245,3 +246,30 @@ if (Froxlor::isFroxlorVersion('2.0.1')) {
|
|
|
|
|
Update::showUpdateStep("Updating from 2.0.1 to 2.0.2", false);
|
|
|
|
|
Froxlor::updateToVersion('2.0.2');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (Froxlor::isFroxlorVersion('2.0.2')) {
|
|
|
|
|
Update::showUpdateStep("Updating from 2.0.2 to 2.0.3", false);
|
|
|
|
|
Froxlor::updateToVersion('2.0.3');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (Froxlor::isFroxlorVersion('2.0.3')) {
|
|
|
|
|
Update::showUpdateStep("Updating from 2.0.3 to 2.0.4", false);
|
|
|
|
|
|
|
|
|
|
$complete_filedir = Froxlor::getInstallDir() . '/scripts';
|
|
|
|
|
// check if compat. cronjob still exists (most likely didn't run successfully b/c of error from former 2.0 release)
|
|
|
|
|
if (@file_exists($complete_filedir.'/froxlor_master_cronjob.php')) {
|
|
|
|
|
Update::showUpdateStep("Adjusting backward compatibility for cronjob");
|
|
|
|
|
$newCronBin = Froxlor::getInstallDir() . '/bin/froxlor-cli';
|
|
|
|
|
$compCron = <<<EOF
|
|
|
|
|
<?php
|
|
|
|
|
chmod('$newCronBin', 0755);
|
|
|
|
|
// re-create cron.d configuration file
|
|
|
|
|
exec('$newCronBin froxlor:cron -r 99');
|
|
|
|
|
exit;
|
|
|
|
|
EOF;
|
|
|
|
|
file_put_contents($complete_filedir . '/froxlor_master_cronjob.php', $compCron);
|
|
|
|
|
Update::lastStepStatus(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Froxlor::updateToVersion('2.0.4');
|
|
|
|
|
}
|
|
|
|
|
|