Skip to content

Commit

Permalink
fix #2911
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 committed Sep 22, 2024
1 parent 0084fb0 commit 84c3446
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/fr_FR/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
- Sur la page de remplacement possibilité de demander la désactivation de l'équipement [LIEN](https://github.com/jeedom/core/issues/2893)
- Lors d'une mise à jour la sauvegarde avant prend maintenant en compte les exclusions des plugins [LIEN](https://github.com/jeedom/core/commit/22aa19b85028b0de6f7d3028ae0424d4f238f7df)
- Si un plugin est en beta mais n'a pas de changelog beta alors le centre de mise à jour renverra vers le changelog stable [LIEN](https://github.com/jeedom/core/commit/2af7b0a4d8680f68810cf9d07c657c51fe9e40bd)
- Correction d'un bug lors de la restoration de Jeedom sur les versions de MariaDB 10.5.25, 10.6.18, 10.11.8, 11.0.6, 11.1.5, 11.2.4 et 11.4.2 [LIEN](https://github.com/jeedom/core/issues/2911)

>**IMPORTANT**
>
Expand Down
7 changes: 2 additions & 5 deletions install/restore.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,8 @@
$str_db_connexion = "--host=" . $CONFIG['db']['host'] . " --port=" . $CONFIG['db']['port'] . " --user=" . $CONFIG['db']['username'] . " --password='" . $CONFIG['db']['password'] . "' " . $CONFIG['db']['dbname'];
}
}
if(isset($CONFIG['db']['unix_socket'])) {
shell_exec("mysql ". $str_db_connexion . " < " . $jeedom_dir . "/DB_backup.sql");
} else {
shell_exec("mysql ". $str_db_connexion . " < " . $jeedom_dir . "/DB_backup.sql");
}
shell_exec("sed -i '1{/999999.*sandbox/d}' ".$jeedom_dir . "/DB_backup.sql");
shell_exec("mysql ". $str_db_connexion . " < " . $jeedom_dir . "/DB_backup.sql");
echo "OK\n";

echo "Enable back constraints...";
Expand Down

1 comment on commit 84c3446

@Heliospeed
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci beaucoup, ça fonctionne.
J'ai testé sur docker et une vm.

Please sign in to comment.