mirror of https://github.com/nicolargo/glances.git
A simple uninstall script
This commit is contained in:
parent
b128e05854
commit
60f2d6c1f4
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue