HI, i am unable to run a script while installing the app using install builder.. can some one please let me know if i am doing anything wrong in the code..

As part of PostInstallationActions ..

<runprogram> <program>sh ${installdir}/scripts/xxx.sh</program> <programarguments></programarguments> </runprogram>

Giving an error like - File not found exception.. [Error running sh /opt/xxx/scripts/xxx.sh : /bin/sh: sh /opt/xxxx/scripts/xxx.sh: No such file or directory]

but when i run the file directly "sh /opt/xxx/scripts/xxx.sh" it is executing fine.. looks like there is something to do with permissions.. but would be great if some one can help me..

asked 13 Jun '13, 11:32

jay's gravatar image

jay
1222
accept rate: 0%


It seems to me, that you're passing a path argument to the "sh" program, thus what about configuring your action the following way?

<runProgram>
    <program>sh</program>
    <programArguments>${installdir}/scripts/xxx.sh</programArguments>
</runProgram>

This might help with any path expansion, space escaping etc.

Best,
Dirk

link

answered 14 Jun '13, 11:53

Dirk%20Stegemann's gravatar image

Dirk Stegemann
681283244
accept rate: 31%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2

Asked: 13 Jun '13, 11:32

Seen: 1,028 times

Last updated: 14 Jun '13, 11:53