/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
- #!/bin/sh
- # remove any previous symlinks from /usr/local/bin
- for f in `find /usr/local/bin/ -name "atlas-*"`; do
- rm $f
- done
-
- # set correct perms
- chown -R root:staff /usr/share/atlassian-plugin-sdk-${version}
- chmod -R 755 /usr/share/atlassian-plugin-sdk-${version}/bin
- chmod -R 755 /usr/share/atlassian-plugin-sdk-${version}/apache-maven/bin
- chmod 755 /usr/share/atlassian-plugin-sdk-${version}/uninstall.sh
- # Add the symlinks we need from /usr/share to /usr/local/bin
- for f in `find /usr/share/atlassian-plugin-sdk-${version}/bin/ -name "atlas-*" | xargs -n1 basename`; do
- ln -s /usr/share/atlassian-plugin-sdk-${version}/bin/$f /usr/local/bin/$f
- chown -R root:staff /usr/local/bin/$f
- done