diff --git a/dicos/91_ninegate.xml b/dicos/91_ninegate.xml
index 8dc5c927..0e4e3f14 100644
--- a/dicos/91_ninegate.xml
+++ b/dicos/91_ninegate.xml
@@ -15,6 +15,8 @@
+
+
ninegate
@@ -452,9 +454,16 @@
ninegate_dbpass
ninegate
+ ninegate-migration
+
ninegate
+
+ non
+ ninegate-migration
+
+
LDAP
SSO
diff --git a/tmpl/ninegate-db.yml b/tmpl/ninegate-db.yml
index c09fe698..9c67f725 100644
--- a/tmpl/ninegate-db.yml
+++ b/tmpl/ninegate-db.yml
@@ -38,3 +38,10 @@ pwd_files:
end_pattern: '',
owner: 'root:www-data',
mod: '660' }
+%if %%is_defined('activer_envole_migration') and %%activer_envole_migration == 'oui'
+ - {file: '%%cnt_prefix/var/www/html/envole-migration/config/config-db-ninegate.php',
+ pattern: '$dbpwd_ninegate = "',
+ end_pattern: ';',
+ owner: 'root:www-data',
+ mod: '660' }
+%end if
diff --git a/tmpl/ninegate-migration.php b/tmpl/ninegate-migration.php
new file mode 100644
index 00000000..7a6efc68
--- /dev/null
+++ b/tmpl/ninegate-migration.php
@@ -0,0 +1,34 @@
+getMessage());
+}
\ No newline at end of file