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

Fix #16 by specifying VENV_PATH when running letsencrypt. #17

Merged
merged 1 commit into from
Mar 11, 2016

Conversation

mheistermann
Copy link
Contributor

Issue copy-paste from
#16

When you install letsencrypt using the VCS method, it will create a
virtualenv, which would normally be located in
~/.local/share/letsencrypt:

Excerpt from letsencrypt-auto:

XDG_DATA_HOME=${XDG_DATA_HOME:-~/.local/share}
VENV_NAME="letsencrypt"
VENV_PATH=${VENV_PATH:-"$XDG_DATA_HOME/$VENV_NAME"}

However, puppet exec's will not set $HOME, which will stop Debian's
/bin/sh, dash, from expanding , so it creates a literal '' folder.

@danzilio
Copy link
Member

Thanks @mheistermann! I'm going to take a look at this PR today!

@@ -8,6 +8,7 @@
$package_ensure = 'installed'
$config_file = '/etc/letsencrypt/cli.ini'
$path = '/opt/letsencrypt'
$venv_path = '/opt/letsencrypt-venv' # virtualevn path for vcs-installed letsencrypt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about changing this to /opt/letsencrypt/.venv?

Issue copy-paste from
voxpupuli#16

When you install letsencrypt using the VCS method, it will create a
virtualenv, which would normally be located in
~/.local/share/letsencrypt:

Excerpt from letsencrypt-auto:
```
XDG_DATA_HOME=${XDG_DATA_HOME:-~/.local/share}
VENV_NAME="letsencrypt"
VENV_PATH=${VENV_PATH:-"$XDG_DATA_HOME/$VENV_NAME"}
```
However, puppet exec's will not set $HOME, which will stop Debian's
/bin/sh, dash, from expanding ~, so it creates a literal '~' folder.
@mheistermann
Copy link
Contributor Author

Sure! Changed it to the suggested path and updated the PR.

danzilio added a commit that referenced this pull request Mar 11, 2016
Fix #16 by specifying VENV_PATH when running letsencrypt.
@danzilio danzilio merged commit 4121f28 into voxpupuli:master Mar 11, 2016
@danzilio
Copy link
Member

Thanks @mheistermann! I'll push a release to the forge today.

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

Successfully merging this pull request may close these issues.

2 participants