-
Notifications
You must be signed in to change notification settings - Fork 27
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
Run install.sh with non-root user #68
Comments
To create a non-root user with sudo:
|
Second run failed in same manner. Couldn't tell what the issue was in the first run (last night). Inspecting again. |
The issue is this:
For some reason it's not finding composer, which is installed at
This is a totally different error, due to the fact that the top of the #!/usr/bin/env php This is telling the So this is particularly annoying that it's giving a totally different error. During running the script it acts like it can't find composer, even though composer is clearly at
The fact that this error is produced indicates that the script is successfully running PHP, else there would be a "php not found" error. It seems as though the quickest solution to this would be to replace all calls to Another solution may be to make a symlink from |
I tried the symlink method above. No joy. I tried the |
I worked around this issue by instead of moving the php ~/sources/composer.phar <commands> Install is still running, but composer steps appear to have worked. I will need to run this straight through from the beginning to verify any intermediate steps. |
npm failed for similar reasons. Going to try |
Didn't work. Trying: node /usr/local/lib/node_modules/npm/bin/npm-cli.js install |
That alone didn't work, stating that it couldn't find node. What the? So, based on the composer experience and the fact that I symlinked PHP, I tried following Node's sudo ln -s /usr/local/bin/node /usr/bin/node Thus, I symlinked from node from I did get some errors in the install, so it needs some work, but VE functions. |
This issue is resolved through hackish measures, but needs to be investigated further. A Stack Overflow question should be submitted. Since this issue is to get a non-root user to be able to install, and that is "resolved", this issue will be closed shortly. A separate issue, #90, has been opened for the specific problems with node, npm and composer. |
Ran successfully from start to finish except some errors which don't appear to be hurting functionality. See here for full output of install: https://gist.githubusercontent.com/jamesmontalvo3/639da97c7d9e83cef5f1/raw/non-root.txt |
Stack Overflow question posted: http://stackoverflow.com/questions/31332886/long-install-script-successful-as-root-npm-and-composer-not-found-as-non-root-s |
This appears to be resolved by the addition to if [[ $PATH != *"/usr/local/bin"* ]]; then
PATH="/usr/local/bin:$PATH"
fi See https://github.com/enterprisemediawiki/Meza1/blob/script-titles/client_files/install.sh#L12 |
Closed with #79 |
This should work with the following, but it did not work on the first attempt:
But it should be confirmed prior to attempting to deploy on Meza1 Server (#67).
The text was updated successfully, but these errors were encountered: