- Bug fix, provision sccp
This commit is contained in:
parent
8d8d45d2d9
commit
47f92a0c53
|
@ -280,7 +280,7 @@ class extconfigs {
|
||||||
if ($db_vars["tftp_rewrite"]["data"] == 'pro') {
|
if ($db_vars["tftp_rewrite"]["data"] == 'pro') {
|
||||||
$adv_tree_mode = 'pro';
|
$adv_tree_mode = 'pro';
|
||||||
if (!empty($adv_ini)) { // something found in external conflicts
|
if (!empty($adv_ini)) { // something found in external conflicts
|
||||||
$adv_ini .= 'index.cnf';
|
$adv_ini .= '/index.cnf';
|
||||||
if (file_exists($adv_ini)) {
|
if (file_exists($adv_ini)) {
|
||||||
$adv_ini_array = parse_ini_file($adv_ini);
|
$adv_ini_array = parse_ini_file($adv_ini);
|
||||||
$adv_config = array_merge($adv_config, $adv_ini_array);
|
$adv_config = array_merge($adv_config, $adv_ini_array);
|
||||||
|
|
12
contrib/index.cnf
Normal file
12
contrib/index.cnf
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[main]
|
||||||
|
debug = on ; The output in the browser window for more information
|
||||||
|
tftproot = /tftpboot
|
||||||
|
;default_language = English_United_States
|
||||||
|
|
||||||
|
firmware = firmware
|
||||||
|
settings = /tftpboot
|
||||||
|
wallpapers = /tftpboot/Desktops
|
||||||
|
ringtones = ringtones
|
||||||
|
locales = locales
|
||||||
|
countries = countries
|
||||||
|
languages = /tftpboot/languages
|
|
@ -805,6 +805,10 @@ function CreateBackUpConfig() {
|
||||||
$backup_files = array('extconfig','extconfig','res_mysql', 'res_config_mysql','sccp');
|
$backup_files = array('extconfig','extconfig','res_mysql', 'res_config_mysql','sccp');
|
||||||
$backup_ext = array('_custom.conf', '.conf');
|
$backup_ext = array('_custom.conf', '.conf');
|
||||||
$dir = $cnf_int->get('ASTETCDIR');
|
$dir = $cnf_int->get('ASTETCDIR');
|
||||||
|
|
||||||
|
$filename = $dir.'/sccp_backup_'.date("Ymd").'.sql';
|
||||||
|
$result = exec('mysqldump '.$amp_conf['AMPDBNAME'].' --password='.$amp_conf['AMPDBPASS'].' --user='.$amp_conf['AMPDBUSER'].' --single-transaction >'.$filename ,$output);
|
||||||
|
|
||||||
$zip = new \ZipArchive();
|
$zip = new \ZipArchive();
|
||||||
$filename = $dir . "/sccp_instal_backup" . date("Ymd"). ".zip";
|
$filename = $dir . "/sccp_instal_backup" . date("Ymd"). ".zip";
|
||||||
if ($zip->open($filename, \ZIPARCHIVE::CREATE)) {
|
if ($zip->open($filename, \ZIPARCHIVE::CREATE)) {
|
||||||
|
|
Loading…
Reference in a new issue