Created
June 25, 2011 14:14
-
-
Save dreadwarrior/1046529 to your computer and use it in GitHub Desktop.
How to cleanup outdated TYPO3 projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assume your development projects are located in /home/your_name/public_html | |
cd ~/public_html | |
# show currently extracted typo3_src directories | |
ls | grep typo3_src | |
# example output: | |
# typo3_src-4.3.3 | |
# typo3-src-4.5.2 | |
# assume you want to remove the 4.3.3 src, find projects which are using this src | |
find . -maxdepth 2 -lname '*4.3.3*' | |
# example output: | |
./my-old-project.local/typo3_src | |
./another-old-project.local/typo3_src | |
# cleanup, adding sudo for access restricted files & folders (e.g. written by the webserver) | |
sudo rm -rf my-old-project.local/ | |
sudo rm -rf another-old-project.local/ | |
# cleanup src | |
rm -rf typo3_src-4.3.3 | |
# disable & remove apache configuration | |
sudo a2dissite my-old-project.local | |
sudo a2dissiite another-old-project.local | |
sudo rm /etc/apache2/sites-available/my-old-project.local | |
sudo rm /etc/apache2/sites-available/another-old-project.local | |
# remove databases and db-users (this is done in a GUI tool) | |
# @todo: add shell commands for this tasks | |
# reload apache configuration | |
sudo /etc/init.d/apache2 reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment