/sdk-installer/src/main/osx/scripts/postinstall

https://bitbucket.org/mmeinhold/amps · Shell · 18 lines · 11 code · 3 blank · 4 comment · 2 complexity · 7261bcbb152f7caff57991f88dce9ac7 MD5 · raw file

  1. #!/bin/sh
  2. # remove any previous symlinks from /usr/local/bin
  3. for f in `find /usr/local/bin/ -name "atlas-*"`; do
  4. rm $f
  5. done
  6. # set correct perms
  7. chown -R root:staff /usr/share/atlassian-plugin-sdk-${version}
  8. chmod -R 755 /usr/share/atlassian-plugin-sdk-${version}/bin
  9. chmod -R 755 /usr/share/atlassian-plugin-sdk-${version}/apache-maven/bin
  10. chmod 755 /usr/share/atlassian-plugin-sdk-${version}/uninstall.sh
  11. # Add the symlinks we need from /usr/share to /usr/local/bin
  12. for f in `find /usr/share/atlassian-plugin-sdk-${version}/bin/ -name "atlas-*" | xargs -n1 basename`; do
  13. ln -s /usr/share/atlassian-plugin-sdk-${version}/bin/$f /usr/local/bin/$f
  14. chown -R root:staff /usr/local/bin/$f
  15. done