<iangreenleaf>
@paulproteus: A problem I've run into with the install script: I can't override all the env vars to make it fully non-interactive. For ex, at first I was using the full install and discovered that I can't set USE_SANDCATS (it gets clobbered). So I switched to dev install, and discovered that setting USE_DEFAULTS=no does no good (it still prompts)
<paulproteus>
iangreenleaf: That is intriguing but also I am right about to fall asleep.
<paulproteus>
Having said that, a few things.
<paulproteus>
1. Are you running it as root?
<paulproteus>
If you're not, note that it re-executes itself as root, and only passes some variables through.
<iangreenleaf>
1. I am (well, running it as another user but with sudo)
<paulproteus>
2. Some of these are best understood as local variables to the script, rather than environment variables. I think USE_SANDCATS is one such variable.
<paulproteus>
Are you letting _it_ call sudo, or using 'sudo install.sh'?
<paulproteus>
If the former, then it limits which variables it passes through.
<iangreenleaf>
sudo install.sh
<paulproteus>
Great, that should work well enough.
<paulproteus>
Toward the top of install.sh there is:
<paulproteus>
USE_SANDCATS="no"
<paulproteus>
Which means it ignores whatever is in the environment and sets a script variable to "no" and then proceeds.
<iangreenleaf>
Right, that's the problem.
<paulproteus>
You could do something like:
<paulproteus>
USE_SANDCATS="${USE_SANDCATS:-no}"
<paulproteus>
I think that expression uses the env var, but defaults to "no".
<paulproteus>
Having said that, I didn't write the handling of USE_SANDCATS with this in mind. You'd have better luck specifying ACCEPTED_FULL_SERVER_INSTALL=yes
<paulproteus>
ACCEPTED_FULL_SERVER_INSTALL _is_ designed for use by passing in via the environment.
<iangreenleaf>
Yeah, that would be great. Would you be open to patching install.sh to support passing these things in?
<paulproteus>
My answer is sort of "yes and no". I'd have to think about it. To my mind, there are some of these that are already designed for passing in, and others that aren't, and a reason I'm not fully sure I want to say "yes" is that I don't look forward to supporting this as an official API.
<paulproteus>
Given that these are sort of just variables that I made for the program!
<paulproteus>
Supporting ACCEPTED_FULL_SERVER_INSTALL=yes I could get behind, though!
<paulproteus>
That is, reading that out of the environment, and doing the right thing. In fact, I _think_ it already does.
<iangreenleaf>
Yeah, give it some thought. It would be great (not just for my purposes, but for others as well) if it were possible to make it run non-interactively.
<paulproteus>
I agree re: non-interactively. I think we might just disagree on the details.
<paulproteus>
Here's a question for you.
<paulproteus>
Would something like this work for you?
<iangreenleaf>
Problem with ACCEPTED_FULL_SERVER_INSTALL is that's only for the full install, and the full install clobbers USE_SANDCATS
<iangreenleaf>
yeah, that would be fine, especially if DESIRED_SANDCATS_NAME=none disabled it
<paulproteus>
"disabled" like turns off Sandcats?
<iangreenleaf>
yeah
<paulproteus>
Fair enough.
<iangreenleaf>
that's sorta the behavior of the prompt already, so should fit in well
<paulproteus>
Right, that makes sense.
<iangreenleaf>
Ok, great. I'm going to sleep too, but I'll come back to this sooner or later. Happy to submit some patches too if I know you're on board.
<paulproteus>
I think I'll be happy to see the patches and I'm theoretically on board and seeing the patches would help me better understand exactly the use case you're going for.
<paulproteus>
Even if I might have feedback and you might have to rework it a little bit, I think that's the best way forward -- I'm on board in theory at least.
<iangreenleaf>
Sounds good. We can pick up in a day or 2 or 3.
<paulproteus>
(-:
<paulproteus>
Ciao for now! I'll read here + github + email etc.
<paulproteus>
And thanks for stopping by!
<paulproteus>
Not everyone reaches out to a project when they have questions. It's really great to meet people who do.