Skip to content
This repository has been archived by the owner on Jan 27, 2018. It is now read-only.

Plugin tries to remove the htdocs directory #5

Closed
thekamaster opened this issue Apr 1, 2016 · 1 comment
Closed

Plugin tries to remove the htdocs directory #5

thekamaster opened this issue Apr 1, 2016 · 1 comment

Comments

@thekamaster
Copy link

After running the letsencrypt client, the last action made by the gandhi plugin is to remove temporary directories :

sftp> rmdir vhosts/<myvhost>/htdocs//.well-known/acme-challenge
sftp> rmdir vhosts/<myvhost>/htdocs//.well-known/
sftp> rmdir vhosts/<myvhost>/htdocs//
Couldn't remove directory: Failure

I think the last one shouldn't be there ? (even if it fails)

@baloo
Copy link
Contributor

baloo commented Jun 3, 2016

That's kind of intended. We just issue commands to sftp. I didn't wanted to put pexpect or similar tools.

We try to create hierarchy of directories for the well-known secret to be available. We then remove all "potentially created" directories. We explicitly ignore the failure of those commands (which will fail if directory is not empty, which means it was there before and not empty).

@baloo baloo closed this as completed Jun 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants