Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Uninstall script #75

Merged
merged 1 commit into from

2 participants

@dlion

I add a simple uninstall script.

@nicolargo nicolargo merged commit c8682cb into nicolargo:master
@nicolargo
Owner

Nice, thx for the contribution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 5, 2012
  1. A simple uninstall script

    dlion authored
This page is out of date. Refresh to see the latest.
Showing with 29 additions and 0 deletions.
  1. +29 −0 uninstall.sh
View
29 uninstall.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+if [ $(id -u) -ne 0 ]; then
+ echo -e "* ERROR: User $(whoami) is not root, and does not have sudo privileges"
+ exit 1
+fi
+
+if [ ! -f "setup.py" ]; then
+ echo -e "* ERROR: Setup file doesn't exist"
+ exit 1
+fi
+
+
+
+python setup.py install --record install.record
+
+for i in $(cat install.record); do
+ rm $i
+done
+
+echo -e "\n\n* SUCCESS: Uninstall complete."
+rm install.record
+
+
+
+
+
+
+
Something went wrong with that request. Please try again.