I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit c0b63ee7 authored by jrandom's avatar jrandom Committed by zzz
Browse files

bournification

parent 6fbbfbaa
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@
# Java Service Wrapper can be found at:
# http://wrapper.tanukisoftware.org/doc/english/introduction.html
if [ $UID -ne 0 ]; then
if [ ! "X$USER" = "Xroot" ]; then
echo "Sorry, you need root privileges to install services."
exit 1
fi
......@@ -23,7 +23,7 @@ fi
ERROR_MSG="Cannot determine operating system type. Please install the service manually."
HOST_OS=`./osid`
if [[ ! $HOST_OS || $HOST_OS = "unknown" ]]; then
if [ "X$HOST_OS" = "X" -o "$HOST_OS" = "unknown" ]; then
echo "$ERROR_MSG"
exit 1
fi
......
......@@ -15,7 +15,7 @@
# Java Service Wrapper can be found at:
# http://wrapper.tanukisoftware.org/doc/english/introduction.html
if [ $UID -ne 0 ]; then
if [ ! "X$USER" = "Xroot" ]; then
echo "Sorry, you need root privileges to uninstall services."
exit 1
fi
......@@ -23,7 +23,7 @@ fi
ERROR_MSG="Cannot determine operating system type. Please uninstall the service manually."
HOST_OS=`./osid`
if [[ ! $HOST_OS || $HOST_OS = "unknown" ]]; then
if [ "X$HOST_OS" = "X" -o "$HOST_OS" = "unknown" ]; then
echo "$ERROR_MSG"
exit 1
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment