fpoirotte / phpfarm

Fork from the original phpfarm developed by Christian Weiske (@cweiske/phpfarm)
GNU Affero General Public License v3.0
118 stars 37 forks source link

Add remove script #10

Closed nenadalm closed 6 years ago

nenadalm commented 9 years ago

Hi. I have a lot php versions now (+ I created some other files in my system in post-install script) so I think it would be helpful to have script which can remove these old versions.

fpoirotte commented 8 years ago

The script "main.sh" already prompts whether old versions should be removed or not. It uses the contents of custom/default-versions.txt to determine what the currently valid versions are. Any version not listed there is considered obsolete and proposed for removal. Please note that old versions are only removed after all other operations have run successfully.

It this enough for your use case? I'm a bit reluctant to adding yet another script unless there is a solid reason to do so.

fpoirotte commented 8 years ago

As a side note: phpfarm follows the git flow branching model (http://nvie.com/posts/a-successful-git-branching-model/). Patches should therefore be submitted against the "develop" branch rather than the "master" branch.

nenadalm commented 8 years ago

the script just removes old installed php versions, but it doesn't remove stuff downloaded by post install script (e.g. some extension sources)