Coder Social home page Coder Social logo

Comments (5)

 avatar commented on May 20, 2024

A good point. it should work if "-w" is specified on the command line. if that's not defined, it assumes that the working directory is ~/.getssl and then uses that, there should be a way to put it in a config file though.

My challenge of logic, is how does it read from the config file, in the "WORKING_DIR" if that isn't defined on the command line, but is defined in the config file in "~/.getssl/getssl.cfg" (as it's reading it from "$WORKING_DIR/getssl.cfg" .. if that makes sense.

from getssl.

deti-p avatar deti-p commented on May 20, 2024

You has two "working dirs". The WORKING_DIR and DOMAIN_DIR. In my mind they are the same.

But I can think of an environment where I use one dir for the account config file and other dir outside where the domains are stored in.

I would suggest to set the account-config file in ~/.getssl (default) or the "-w /dir".
If then someone defines WORKING_DIR in the account-config file to renew the WORKING_DIR, DOMAIN_DIR, ... in getssl after reading getssl.cfg.
Defining WORKING_DIR in the domail-config is useless, because the location was already created and can't be changed.

from getssl.

 avatar commented on May 20, 2024

OK, I think I understand where you are coming from. I may need to define a new variable ( so that everything is backward compatible ).

WORKING_DIR and DOMAIN_DIR are slightly different.

WORKING_DIR is the top level directory, and then there is a different DOMAIN_DIR below that - for each domain.

How about if we had a variable DOMAIN_STORAGE .... which by default would be the same as WORKING_DIR ... but could be set in the "$WORKING_DIR/.getssl.cfg" and then all the domain data would be in $DOMAIN_STORAGE/$DOMAIN/

Would you want different $DOMAIN_STORAGE locations for different domains at all ?

from getssl.

deti-p avatar deti-p commented on May 20, 2024

Perfect!

from getssl.

 avatar commented on May 20, 2024

added in version 1.12 (I'll update the wiki / documentation).

from getssl.

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.