Merge pull request #5434 from ffdixon/update-thumbnail-links

Fix for #5211
This commit is contained in:
Fred Dixon 2018-04-29 21:02:04 -04:00 committed by GitHub
commit 6ae175ebed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1866,6 +1866,12 @@ if [ -n "$HOST" ]; then
fi
fi
#
# Update thumbnail links
#
find /var/bigbluebutton/published -name metadata.xml -exec \
sed "s/<image width=\"\([0-9]*\)\" height=\"\([0-9]*\)\" alt=\"\([^\"]*\)\">\(http[s]*\):\/\/[^\/]*\/\(.*\)/<image width=\"\1\1\" height=\"\2\" alt=\"\3\">\4:\/\/$HOST\/\5/g" \
'{}' \;
echo "Restarting the BigBlueButton $BIGBLUEBUTTON_RELEASE ..."
stop_bigbluebutton