diff options
author | 2009-06-17 19:24:03 +0100 | |
---|---|---|
committer | 2009-06-17 19:24:03 +0100 | |
commit | 29086d9359635eca24d61bfb167dea675cc5a771 (patch) | |
tree | 647b1d1cb287764e0aaca4a531bb67a11aa8ca90 | |
parent | Initial Universal Select Tool Commit (diff) | |
download | uselect-29086d9359635eca24d61bfb167dea675cc5a771.tar.gz uselect-29086d9359635eca24d61bfb167dea675cc5a771.tar.bz2 uselect-29086d9359635eca24d61bfb167dea675cc5a771.zip |
install.sh now verifies if you are root
-rw-r--r-- | install.sh | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -1,11 +1,15 @@ #!/bin/bash # -# Uselect Temporary installer -# +# Uselect Temporary Installer +# -PWD=`pwd` +if [ "$(id -u)" != "0" ]; then + echo "uselect's $0 must be run as root!" + exit 1 +fi -rm -f /usr/bin/uselect -rm -f /usr/share/uselect -ln -s $PWD/uselect.py /usr/bin/uselect -ln -s $PWD /usr/share/uselect +rm -rf /usr/bin/uselect +rm -rf /usr/share/uselect +mkdir /usr/share/uselect +cp -R * /usr/share/uselect/ +ln -s /usr/share/uselect/uselect.py /usr/bin/uselect |