You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that is more likely that users want too add more commands to scriptlets, than to replace them entirely. This is extra proplematic because predefined settings like packageArchetype.java_server adds some scriplets, that is pretty easy for the user to override by mistake.
Currently ekstra scriplet commands can be added like this:
I think this is a pretty decent approach. IMHO we should extend this to the debian packaging as well.
However I like the approach where you can provide a complete control script. So we may also add
an option controlScriptStrategy (or something like that), with values like file, settings, merge and fail.
This would makes things a lot easier in the debian package, where we add chown and useradd statements with a lot of action. It would be just postInst += "....".
I will start this after #348 is merged. If you use the java_server archetype you can already add stuff the rpm scriptlets via files. Just put them in src/rpm/ - postinstpostunpreinstpreun
Inspired from: #219
I think that is more likely that users want too add more commands to scriptlets, than to replace them entirely. This is extra proplematic because predefined settings like packageArchetype.java_server adds some scriplets, that is pretty easy for the user to override by mistake.
Currently ekstra scriplet commands can be added like this:
but it is pretty complex and not very intuitive. I think most sbt users would expect to do this:
rpmPre += "some usefull shell command"
The text was updated successfully, but these errors were encountered: