preinstall.sh 450 B

123456789101112
  1. #!/bin/bash
  2. #
  3. # packager.io preinstall script
  4. #
  5. #
  6. # Make sure that after installation/update there can be only one sprockets manifest,
  7. # the one coming from the package. The package manager will ignore any duplicate files
  8. # which might come from a backup restore and/or a manual 'assets:precompile' command run.
  9. # These duplicates can cause the application to fail, however.
  10. #
  11. rm -f /opt/zammad/public/assets/.sprockets-manifest-*.json || true