Skip to content

Commit 99574df

Browse files
authored
Merge pull request #588 from mbussolotto/mig_5
during migration, check if the source server is a no-containerized server (bsc#1243396)
2 parents 80a672b + 567e6e1 commit 99574df

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

mgradm/shared/templates/migrateScriptTemplate.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ if test -e /tmp/ssh_config; then
2020
fi
2121
SSH="ssh -o User={{ .User }} -A $SSH_CONFIG "
2222
23+
if $SSH {{ .SourceFqdn }} "[[ ! -f /etc/susemanager-release && ! -f /etc/uyuni-release ]]"; then
24+
echo "Cannot find neither /etc/susemanager-release nor /etc/uyuni-release. Is the source a no-containerized server?"
25+
exit 1
26+
fi
27+
2328
{{ if .Prepare }}
2429
echo "Preparing migration..."
2530
$SSH {{ .SourceFqdn }} "sudo systemctl start postgresql.service"

uyuni-tools.changes.mbussolotto.mig_5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- during migration, check if the source server is a no-containerized server (bsc#1243396)

0 commit comments

Comments
 (0)