Removed additional checks from openbaton.sh
@@ -14,27 +14,6 @@ _tmpfolder=`mktemp -d`
_screen_name="nfvo"
-function checkBinary {
- echo -n " * Checking for '$1'..."
- if command -v $1 >/dev/null 2>&1; then
- echo "OK"
- return 0
- else
- echo >&2 "FAILED."
- return 1
- fi
-}
-
-_ex='sh -c'
-if [ "$_user" != 'root' ]; then
- if checkBinary sudo; then
- _ex='sudo -E sh -c'
- elif checkBinary su; then
- _ex='su -c'
- fi
-fi
-
-
function check_already_running {
pgrep -f openbaton-${_version}.jar
if [ "$?" -eq "0" ]; then
