Add a work around for missing assets/select2.png error on web console

This commit is contained in:
Pirate Praveen 2020-04-03 17:43:56 +05:30
parent d1fadde153
commit b0746d46d1

View file

@ -41,5 +41,11 @@ runuser -u ${gitlab_user} -- sh -c '/usr/bin/bundle exec rake gettext:po_to_json
echo "Precompiling assets..."
runuser -u ${gitlab_user} -- sh -c '/usr/bin/bundle exec rake tmp:cache:clear assets:precompile'
# Workaround for https://gitlab.com/gitlab-org/gitlab/-/issues/213245
echo "Adding symbolic link for assets/select2.png..."
runuser -u ${gitlab_user} -- sh -c 'cd /usr/share/gitlab/public/assets && \
if ! [ -f select2.png ]; then \
ln -s select2-d6b5d8d83dbc18fb8d77c8761d331cd9e5123c9684950bab0406e98a24ac5ae8.png select2.png; fi'
echo "Webpacking..."
runuser -u ${gitlab_user} -- sh -c 'webpack --config config/webpack.config.js'