ioBroker.js-controller icon indicating copy to clipboard operation
ioBroker.js-controller copied to clipboard

Allow to run custom scripts on installation

Open Apollon77 opened this issue 4 years ago • 5 comments

Allow to run such commands like here https://forum.iobroker.net/post/429882 on install ... provide a structure like for the package manager (or maybe integrate it there somehow?) which is os specific to e.g. only run on linux (this is not that easy possible with npm scripts)

Apollon77 avatar May 11 '20 06:05 Apollon77

So something like a "scripts" field in io-pack JSON which will be executed by controller?

foxriver76 avatar Aug 25 '20 13:08 foxriver76

With the install emitter we are a step closer, as devs can execute individual code on installation, maybe this won't be enough for such use cases.

foxriver76 avatar Jan 27 '23 08:01 foxriver76

hhmm ... honestly ... maybe this is in general the better idea because sometimes it is not "just calling stuff" but also logic ...

We could proof in with such an adapter

Apollon77 avatar Jan 27 '23 08:01 Apollon77

As discussed in Telegram: We use the install trigger, BUT we should also change it so that the install script do not need to be added as npm post-install script (still can), but we also have a io-package flag and we take care of this start when installing. So we execute and so have a better control over it

Apollon77 avatar Jan 27 '23 09:01 Apollon77

As discussed in Telegram: We use the install trigger, BUT we should also change it so that the install script do not need to be added as npm post-install script (still can), but we also have a io-package flag and we take care of this start when installing. So we execute and so have a better control over it

@Apollon77 Ah dang, do you still know what this is about? Anything left to do?

foxriver76 avatar Mar 26 '24 11:03 foxriver76