node-deb
node-deb copied to clipboard
postinst prevent user creation
Hi,
If we specified a postinst
script, the user and group will not be created.
"node_deb": {
"init": "systemd",
"package_name": "foo",
"dependencies": "npm",
"entrypoints": {
"daemon": "scripts/start-foo"
},
"templates": {
"postinst": "scripts/postinst.sh"
}
}
I thought the postinst
script was added to the original one. But it seems rather than it replace it.
How can I append my postinst
script to the original node-deb postinst
template ?
I would like to avoid having to copy them as it's not safe if node-deb updates its templates in the future. postinst
I think no. https://github.com/heartsucker/node-deb/pull/76 pull request will solve your issue.
postint
is an override, not an append. There are a lot of ways to extend the functionality of this but I think this needs to be ported to JS (#102) before I make any major changes.