/sdk-installer/src/main/deb/DEBIAN/postinst

https://bitbucket.org/mmeinhold/amps · Shell · 20 lines · 13 code · 4 blank · 3 comment · 3 complexity · a3b209195cd319005377642527ae9665 MD5 · raw file

  1. #!/bin/sh
  2. #update file ownership/perms
  3. for f in `find /usr/share/atlassian-plugin-sdk-${version}/bin/ -name "atlas-*"`; do
  4. chown root:root $f
  5. chmod 755 $f
  6. done
  7. for f in `find /usr/share/atlassian-plugin-sdk-${version}/apache-maven/bin/ -name "*"`; do
  8. chown root:root $f
  9. chmod 755 $f
  10. done
  11. # Add the symlinks we need from /usr/share to /usr/bin
  12. for f in `find /usr/bin/ -name "atlas-*"`; do
  13. chown root:root $f
  14. done
  15. echo "If you previously installed a version prior to version 4.0, you will need to remove all references to the atlassian-plugin-sdk directory from your PATH environment variable."
  16. exit 0