Giter Site home page Giter Site logo

Comments (7)

heartsucker avatar heartsucker commented on July 22, 2024

Hey @sanyatuning. Are you saying that you'd like to have some <project-root>/some/path/myconfigfile.json put into the Debian package so that at install time, it appears in /etc/myconfigfile.json?

from node-deb.

vidstige avatar vidstige commented on July 22, 2024

yes, exactly.

from node-deb.

vidstige avatar vidstige commented on July 22, 2024

For now I just changed the place were I refered to /etc/ to instead refer to /usr/share/tumel/app/

from node-deb.

heartsucker avatar heartsucker commented on July 22, 2024

I think this isn't supported at the moment. I think it might be possible to put things into /etc/{app}/, but I also feel like this might be a job for configuration management. Can you explain your use case?

from node-deb.

vidstige avatar vidstige commented on July 22, 2024

I see, yeah this was more of a question. Use case is I have a client connecting to a server. The client is inside this deb package. I want to keep the config file where it says what server and port to connect to in a config file. Usually on linux these are found in /etc. However, it would probably be a bad idea to edit files managed by apt. Best would be if I could copy a file to /etc in postinst. Can this be done then?

from node-deb.

heartsucker avatar heartsucker commented on July 22, 2024

@vidstige Btw, this would be a use case for the --extra-files flag while allows you to drop files where ever you want on the file system. If you had a folder like

my-dir
  |- /etc/
     |- wat.txt

And did

node-deb --extra-files my-dir -- index.js

then wat.txt would end up at /etc/wat.txt.

from node-deb.

vidstige avatar vidstige commented on July 22, 2024

I see, then it was already supported. Thanks for the explanation. 👍

from node-deb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.