View Single Post
ammyt's Avatar
Posts: 1,918 | Thanked: 3,118 times | Joined on Oct 2010 @ My pants
#31
Originally Posted by sulu View Post
...
So change your ln command accordingly:
Code:
ln -s /opt/foopackage/foo /home/user/foopackage/usr/bin/foo
If you check this link in your testing environment it won't work because you have no /opt/foopackage/foo but it will work after installing the package.
Wait, so users would have to install the package twice
As said, it is best to include the ls in the postinst install, that would be true optification

Just a heads-up, in the applications I have made, I only create a file in /usr/bin that executes the actual executable in /opt. Like, the file, say foo, in /usr/bin/ contains a one line command which is /opt/foopackage/foo which launches the actual application from /opt once that /usr/bin/foo file is executed.

How about that?
 

The Following User Says Thank You to ammyt For This Useful Post: