node-deb icon indicating copy to clipboard operation
node-deb copied to clipboard

postinst prevent user creation

Open erakis opened this issue 6 years ago • 2 comments

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

erakis avatar Jan 30 '19 15:01 erakis

I think no. https://github.com/heartsucker/node-deb/pull/76 pull request will solve your issue.

arvatoth-vcc avatar Feb 25 '19 08:02 arvatoth-vcc

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.

heartsucker avatar Mar 01 '19 14:03 heartsucker