Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postinst prevent user creation #99

Open
erakis opened this issue Jan 30, 2019 · 2 comments
Open

postinst prevent user creation #99

erakis opened this issue Jan 30, 2019 · 2 comments

Comments

@erakis
Copy link

erakis commented Jan 30, 2019

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

@arvatoth-vcc
Copy link

I think no. #76 pull request will solve your issue.

@heartsucker
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants