这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@plietar
Copy link
Contributor

@plietar plietar commented Nov 29, 2013

This way plugins can rename/delete files w/o having old files lying around.

Another solution would be using rsync but that seems like an overkill to me.

This way plugins can rename/delete files w/o having old files lying around.
@nickl-
Copy link

nickl- commented Jan 27, 2014

I would not suggest we impose this on all plugins some may have a once only use case. For example generated passwords are never known and cannot be reproduced but they may already be applied externally.

Each module can handle their requirements at installation, yours can detect the presence of the files and do a sweep before it re-installs and the example can notice it already has a password file and leave it in tact.

Unfortunately the suggested patch cannot cater for all scenarios and my advise: Mark this "works as intended" and close issue.

@plietar
Copy link
Contributor Author

plietar commented Jan 27, 2014

I'm not sure I get your point.
This removes old files in /var/lib/dokku/plugins. This directory should contain only code, not data such as passwords.
Moreover it applies only to 'core' plugins which are part of this repository, and thus we are sure they don't keep data in the wrong place.

@nickl-
Copy link

nickl- commented Jan 27, 2014

@plietar you are correct I mistook this for the /home/dokku working directory which could then keep state information instead, am I right?

For interest sake: where does external plugins go when plugins-install did its thing' if not to /var/lib/dokku/plugins ?

@plietar
Copy link
Contributor Author

plietar commented Jan 27, 2014

Despite its name plugins-install does not copy plugins to /var/lib/dokku/plugins
It allows plugins to run some commands once they are installed, for eg dependencies. (nginx-vhosts installs nginx and setups sudo rights.)

Users must copy/clone the external plugins source into /var/lib/dokku/plugins themselves.

josegonzalez added a commit that referenced this pull request Nov 16, 2014
Remove plugins before copying them again.
@josegonzalez josegonzalez merged commit b766654 into dokku:master Nov 16, 2014
@josegonzalez josegonzalez added this to the v0.3.1 milestone Nov 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants