Browse Source

Add a script for migrate from old config

tags/1.0.0
Victor Laborie 1 year ago
parent
commit
d65e584439
1 changed files with 38 additions and 0 deletions
  1. 38
    0
      scripts/config-migrate.php

+ 38
- 0
scripts/config-migrate.php View File

@@ -0,0 +1,38 @@
#!/usr/bin/php
<?php

error_reporting(E_ERROR);
require_once("/home/evoadmin-mail/www/htdocs/config/conf.php");
require_once("/home/evoadmin-mail/www/htdocs/config/connect.php");

?>
; The configuration for evoadmin-mail
;
; You need to copy and edit config-sample.ini to config.ini.
; This INI file is loaded by evoadmin-mail and contains the
; following configurations :
;
; * Global settings
; * LDAP settings
;

[global]
name = "<?php echo $conf['html']['title']; ?>";
mail = "<?php echo $conf['admin']['mail']; ?>"

[ldap]
host = "127.0.0.1"
port = 389
base = "<?php echo LDAP_BASE; ?>"
admin_dn = "<?php echo LDAP_ADMIN_DN; ?>"
admin_pass = "<?php echo LDAP_ADMIN_PASS; ?>"
<?php
foreach ($conf['admin']['logins'] as $admin) {
echo "superadmin[] = \"$admin\"";
}
?>


[log]
file = "../../log/evoadmin-mail.log"
level = error

Loading…
Cancel
Save