play2-native-packager-plugin
play2-native-packager-plugin copied to clipboard
#11 First work done
- Start script only works when you start it on the correct path. Play starter script doesn't evaluate the relative symlink correctly
- init.d script doesn't work correctly even when the path is fixed (hard coded). No idea here.
Cool!
The problem with the bash script seems to be that realpath()
cannot handle the relative symlink correctly.
/usr/bin/<app>
-> ../share/<app>/bin/<app>
when I run ./<app>
from /usr/share/<app>/bin
everything works. On every other path it fails, as it cannot find the /usr/share/<app>/lib
aka the lib_dir. I think I will open a bug on the sbt-native-packager issue tracker.
Ticket https://github.com/sbt/sbt-native-packager/issues/39