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

Add uninstallation instructions #22

Closed
treyhunner opened this issue Nov 8, 2012 · 4 comments
Closed

Add uninstallation instructions #22

treyhunner opened this issue Nov 8, 2012 · 4 comments

Comments

@treyhunner
Copy link

Uninstallation instructions or a script would be extremely helpful for those that installed critic just to play with it.

@jensl
Copy link
Owner

jensl commented Nov 8, 2012

Certainly. In short something like this should undo everything (except uninstalling packages that were installed):

# service critic-main stop
# rm -r /etc/critic /var/{lib,log,cache,run}/critic /usr/share/critic /var/git
# rm /etc/apache2/sites-{enabled,available}/critic-main /etc/init.d/critic-main /usr/bin/criticctl
# sudo -u critic psql -c "drop database critic;"
# sudo -u postgres psql -c "drop user critic;"
# delgroup --system critic
# deluser --system critic
# update-rc.d critic-main remove
# service apache2 restart

An uninstall script is of course on the todo list.

@mo
Copy link
Collaborator

mo commented Nov 10, 2012

To delete the critic user/role from postgres, I had to run as the postgres user rather than the critic user, i.e.:

sudo -u postgres psql -c "drop role critic;"

@mo
Copy link
Collaborator

mo commented Dec 2, 2012

There is now a basic uninstall.py on master ( 799eb18 ).

@mo mo closed this as completed Dec 2, 2012
@jensl
Copy link
Owner

jensl commented Dec 3, 2012

Many thanks, Martin!

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

No branches or pull requests

3 participants