- Remove sccp_extensions.conf
- Remove sccp_hardware.conf
This commit is contained in:
parent
aadd1deb5b
commit
a8af9a32fc
19
install.php
19
install.php
|
@ -803,7 +803,7 @@ function CreateBackUpConfig() {
|
||||||
global $amp_conf;
|
global $amp_conf;
|
||||||
outn("<li>" . _("Create Config BackUp") . "</li>");
|
outn("<li>" . _("Create Config BackUp") . "</li>");
|
||||||
$cnf_int = \FreePBX::Config();
|
$cnf_int = \FreePBX::Config();
|
||||||
$backup_files = array('extensions','extconfig','res_mysql', 'res_config_mysql','sccp');
|
$backup_files = array('extensions','extconfig','res_mysql', 'res_config_mysql','sccp','sccp_hardware','sccp_extensions');
|
||||||
$backup_ext = array('_custom.conf', '.conf');
|
$backup_ext = array('_custom.conf', '.conf');
|
||||||
$dir = $cnf_int->get('ASTETCDIR');
|
$dir = $cnf_int->get('ASTETCDIR');
|
||||||
|
|
||||||
|
@ -831,6 +831,22 @@ function CreateBackUpConfig() {
|
||||||
outn("<li>" . _("Create Config BackUp: ") . $filename ."</li>");
|
outn("<li>" . _("Create Config BackUp: ") . $filename ."</li>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function RenameConfig() {
|
||||||
|
global $amp_conf;
|
||||||
|
outn("<li>" . _("Move Old Config") . "</li>");
|
||||||
|
$cnf_int = \FreePBX::Config();
|
||||||
|
$rename_files = array('sccp_hardware','sccp_extensions');
|
||||||
|
$rename_ext = array('_custom.conf', '.conf');
|
||||||
|
$dir = $cnf_int->get('ASTETCDIR');
|
||||||
|
foreach ($rename_files as $file) {
|
||||||
|
foreach ($rename_ext as $b_ext) {
|
||||||
|
if (file_exists($dir . '/'.$file . $b_ext)) {
|
||||||
|
rename($dir . '/'.$file . $b_ext, $dir . '/'.$file . $b_ext.'.old');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function Setup_RealTime() {
|
function Setup_RealTime() {
|
||||||
global $amp_conf;
|
global $amp_conf;
|
||||||
outn("<li>" . _("Pre config RealTime") . "</li>");
|
outn("<li>" . _("Pre config RealTime") . "</li>");
|
||||||
|
@ -921,6 +937,7 @@ $sccp_db_ver = CheckSCCPManagerDBVersion();
|
||||||
|
|
||||||
// BackUp Old config
|
// BackUp Old config
|
||||||
CreateBackUpConfig();
|
CreateBackUpConfig();
|
||||||
|
RenameConfig();
|
||||||
if ($sccp_compatible > 431) {
|
if ($sccp_compatible > 431) {
|
||||||
InstallDB_sccpuser();
|
InstallDB_sccpuser();
|
||||||
InstallDB_Buttons();
|
InstallDB_Buttons();
|
||||||
|
|
Loading…
Reference in a new issue