Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

custom-commands / image-updates / postupdatecommand not fireing #57

Open
begner opened this issue Dec 2, 2015 · 2 comments
Open

custom-commands / image-updates / postupdatecommand not fireing #57

begner opened this issue Dec 2, 2015 · 2 comments

Comments

@begner
Copy link

begner commented Dec 2, 2015

Hi

We've got Dynmap v2.2-1118 running here, and tried to get the postupdatecommand script working.

Our testscript:

!/bin/bash

echo "postupdatecommand: $@" >> ./test.log
exit 0

but it will never be called

Is that a known issue?

@begner
Copy link
Author

begner commented Dec 2, 2015

Ahh... the problem seams to be the pre/post render use ProcessBuilder, which cant be called with

(if setting is = '/bin/bash /home/..../scriptname.sh')
ProcessBuilder('/bin/bash /home/..../scriptname.sh', fname.getAbsolutePath()).start().waitFor();
it shoule be
ProcessBuilder('/bin/bash', '/home/..../scriptname.sh', fname.getAbsolutePath()).start().waitFor();

so - maybe someone can integrate optional parameters in the settings which will be passed to the procces. this will make pre/post script development much easier.

meanwhile i will use shc (shellScriptCompiler)

@begner begner closed this as completed Dec 2, 2015
@begner
Copy link
Author

begner commented Dec 2, 2015

Hmm... even with a single binary, the process does not start at all...

So - again :)
Is this a known issue?

custom-commands / image-updates does not start at all?

i do not get an exception or some errors, etc

@begner begner reopened this Dec 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant