Skip to content

Commit

Permalink
Merge pull request #223 from nadvornik/distro-fix
Browse files Browse the repository at this point in the history
Fixed migration of multiple autoinstallable distributions
  • Loading branch information
deneb-alpha authored Mar 28, 2024
2 parents 9987d71 + 7e5089b commit 3273c4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mgradm/shared/templates/migrateScriptTemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ sed -i -e 's|appBase="webapps"|appBase="/usr/share/susemanager/www/tomcat/webapp
sed -i -e 's|DocumentRoot\s*"/srv/www/htdocs"|DocumentRoot "/usr/share/susemanager/www/htdocs"|' /etc/apache2/vhosts.d/vhost-ssl.conf
echo "Migrating auto-installable distributions..."
while IFS="," read -r target path ; do
if $SSH -A {{ .SourceFqdn }} test -e $path; then
if $SSH -n {{ .SourceFqdn }} test -e $path ; then
echo "Copying distribution $target from $path"
mkdir -p "/srv/www/distributions/$target"
rsync -e "$SSH" --rsync-path='sudo rsync' -avz "{{ .SourceFqdn }}:$path/" "/srv/www/distributions/$target"
Expand Down
1 change: 1 addition & 0 deletions uyuni-tools.changes.nadvornik.distro-fix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed migration of multiple autoinstallable distributions

0 comments on commit 3273c4e

Please sign in to comment.