Open matterubio opened 8 years ago
The --after-install
flag takes exactly one argument, a path to a script to provide to the package installation system.
In your case, what you probably need to do is create a short script that invokes whatever program you need with whatever arguments. For example:
after.sh
#!/bin/sh
exec /path/to/my/thing some arguments here
fpm ... --after-install after.sh ...
Jordan,
Thank you! I am attempting to circumvent the issue and believe that adding the --template-values flag might solve it.
Sincerely,
Purdue University School of Electrical & Computer Engineering rubiom@purdue.edu (571) 212-1894
On Jul 24, 2016 01:31, "Jordan Sissel" notifications@github.com wrote:
The --after-install flag takes exactly one argument, a path to a script to provide to the package installation system.
In your case, what you probably need to do is create a short script that invokes whatever program you need with whatever arguments. For example:
after.sh
!/bin/sh
exec /path/to/my/thing some arguments here
fpm ... --after-install after.sh ...
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jordansissel/fpm/issues/1161#issuecomment-234758769, or mute the thread https://github.com/notifications/unsubscribe-auth/ATmFI8dq0zzX8cX0xzcYwyrP6K2aAjc7ks5qYviagaJpZM4JQRVM .
Hi Jason, there are some budding attempts to improve the docs and patches are very welcome!
On Wed, 28 Jun 2017, 2:13 PM Jason Danielson, notifications@github.com wrote:
it looks like template-scripts and template-value might be the way. however the --help links to a non-existent page ( https://github.com/jordansissel/fpm/wiki/Script-Templates ) and the documentation for this tool is abysmal.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jordansissel/fpm/issues/1161#issuecomment-311537244, or mute the thread https://github.com/notifications/unsubscribe-auth/AARCJeUCBX3cbdeyx4UviBMW0C3P1xLbks5sIba7gaJpZM4JQRVM .
I would like to know if there is an issue here. I want to add an input argument to my --after-install shell script. fpm seems to think the argument (which is currently separated by a whitespace) is something to package, unfortunately.
I usually get the following error message:
Invalid package configuration: Cannot package the path '[argument]', does it exist? {:level=>:error}
The argument is a path like /home/matterubio/Documents. The idea is to pass this into the script, which starts currently in the root directory on my Ubuntu 14.04. I need this script, though, to start in the destination directory of the fpm call.
Many thanks in advance!