bournification

This commit is contained in:
jrandom
2004-09-02 05:02:53 +00:00
committed by zzz
parent 6fbbfbaa43
commit c0b63ee7a8
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@
# Java Service Wrapper can be found at: # Java Service Wrapper can be found at:
# http://wrapper.tanukisoftware.org/doc/english/introduction.html # 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." echo "Sorry, you need root privileges to install services."
exit 1 exit 1
fi fi
@ -23,7 +23,7 @@ fi
ERROR_MSG="Cannot determine operating system type. Please install the service manually." ERROR_MSG="Cannot determine operating system type. Please install the service manually."
HOST_OS=`./osid` HOST_OS=`./osid`
if [[ ! $HOST_OS || $HOST_OS = "unknown" ]]; then if [ "X$HOST_OS" = "X" -o "$HOST_OS" = "unknown" ]; then
echo "$ERROR_MSG" echo "$ERROR_MSG"
exit 1 exit 1
fi fi

View File

@ -15,7 +15,7 @@
# Java Service Wrapper can be found at: # Java Service Wrapper can be found at:
# http://wrapper.tanukisoftware.org/doc/english/introduction.html # 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." echo "Sorry, you need root privileges to uninstall services."
exit 1 exit 1
fi fi
@ -23,7 +23,7 @@ fi
ERROR_MSG="Cannot determine operating system type. Please uninstall the service manually." ERROR_MSG="Cannot determine operating system type. Please uninstall the service manually."
HOST_OS=`./osid` HOST_OS=`./osid`
if [[ ! $HOST_OS || $HOST_OS = "unknown" ]]; then if [ "X$HOST_OS" = "X" -o "$HOST_OS" = "unknown" ]; then
echo "$ERROR_MSG" echo "$ERROR_MSG"
exit 1 exit 1
fi fi