fix: if an init script is renamed the old version is still on the server
This commit is contained in:
parent
7f393eb2c2
commit
1ec3caf9e3
1 changed files with 3 additions and 0 deletions
|
|
@ -197,9 +197,12 @@ private function generate_environment_variables()
|
|||
|
||||
private function generate_init_scripts()
|
||||
{
|
||||
$this->commands[] = "rm -rf $this->configuration_dir/docker-entrypoint-initdb.d/*";
|
||||
|
||||
if (is_null($this->database->init_scripts) || count($this->database->init_scripts) === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ($this->database->init_scripts as $init_script) {
|
||||
$filename = data_get($init_script, 'filename');
|
||||
$content = data_get($init_script, 'content');
|
||||
|
|
|
|||
Loading…
Reference in a new issue