Skip to content

postinst prevent user creation #99

@erakis

Description

@erakis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions