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
Here in docs written: If you use the packageArchetype.java_server there are predefined postinst and preinst files, which start/stop the application on install/remove calls. Existing maintainer scripts will be extended not overridden.
packageArchetype.java_server is deprecated, i use enablePlugins(JavaServerAppPackaging), but my src/debian/DEBIAN/postinst overrides exists maintainer postinst script.
How I can extend the maintainer postinst?
The text was updated successfully, but these errors were encountered:
sorry for the late reply. We are planning to align rpm/debian so both use a simple api where you can extend/override existing scripts in the same fashion. For now you have to do a bit sbt-foo.
// extending the postinst script
debianMakePostinstScript := {
// you can actually place it anywherevaltmp= (target in Universal).value /"tmp"/"bin"// get the preexisting one or create a newvalpostinst= debianMakePostinstScript.value.getOrElse(tmp /"postinst")
// write stuffIO.write(postinst, """echo "nice one!"""", append =true)
Some(postinst)
}
Here in docs written:
If you use the packageArchetype.java_server there are predefined postinst and preinst files, which start/stop the application on install/remove calls. Existing maintainer scripts will be extended not overridden.
packageArchetype.java_server
is deprecated, i useenablePlugins(JavaServerAppPackaging)
, but mysrc/debian/DEBIAN/postinst
overrides exists maintainerpostinst
script.How I can extend the maintainer
postinst
?The text was updated successfully, but these errors were encountered: