Skip to content

Commit 7e13ce2

Browse files
authored
Merge pull request #596 from nadvornik/migration-fix
Fix migration of autoinstallable distributions (bsc#1243802)
2 parents 66af7ed + 9a6b4f0 commit 7e13ce2

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

mgradm/shared/podman/podman.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ func Migrate(
565565

566566
schemaUpdateRequired :=
567567
oldPgVersion != newPgVersion
568-
if err := RunPgsqlFinalizeScript(preparedServerImage, schemaUpdateRequired, false); err != nil {
568+
if err := RunPgsqlFinalizeScript(preparedServerImage, schemaUpdateRequired, true); err != nil {
569569
return utils.Errorf(err, L("cannot run PostgreSQL finalize script"))
570570
}
571571

mgradm/shared/templates/migrateScriptTemplate.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ $SSH {{ .SourceFqdn }} "sudo systemctl stop postgresql.service"
4040
while IFS="," read -r target path ; do
4141
if $SSH -n {{ .SourceFqdn }} test -e "$path" ; then
4242
echo "-/ $path"
43+
44+
# protect the targets that can be already synced in --prepare phase
45+
echo "P/ /srv/www/distributions/$target"
4346
fi
4447
done < distros > exclude_list
4548
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix migration of autoinstallable distributions (bsc#1243802)

0 commit comments

Comments
 (0)