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

Issues running under Ubuntu with an encrypted home directory, need a way to move out of $HOME #7

Closed
lolaslade opened this issue Apr 26, 2014 · 4 comments

Comments

@lolaslade
Copy link

I use an encrypted home directory which www-data cannot read.
I was able to run fine if I changed:
https://github.com/totten/amp/blob/master/src/Amp/Application.php#L31
to $appDir = '/my/permissionedfolder/amp'; EG: $appDir = '/var/www/vhosts/amp';

I also had to move civicrm-buildkit out of my home folder as well since the test includes the vendor autoload from there.
Perhaps you need a way for users to move out of the home folder if necessary like check for an environment variable such as $AMP_HOME and default to to the user home if it is not set?
Great utility by the way!

@adamwight
Copy link
Contributor

I have another reason to move .amp/ out of $HOME, that it breaks concurrency. Let me know if I can help!

totten added a commit that referenced this issue Jun 13, 2015
@totten
Copy link
Collaborator

totten commented Jul 2, 2015

@lolas-freeform @adamwight - This should now be possible with #29 -- put export AMPHOME=/var/lib/amp in ~/.bashrc, /etc/profile, or similar.

I don't think I've updated buildkit yet to include this revision of amp. If it's not present, then you can temporarily load it with:

cd vendor/totten/amp
git checkout master
git pull origin master

@totten totten closed this as completed Jul 2, 2015
@hashar
Copy link

hashar commented Jul 2, 2015

Thank you @totten , that will help our continuous integration to run multiple build in parallel :-}

@eileenmcnaughton
Copy link
Contributor

note that this PR is open to merge to update the buildkit dependency to include this fix

civicrm/civicrm-buildkit#192

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

5 participants