@@ -77,6 +77,7 @@ if (( $numversion < 26 )); then
fi
echo "Using python " $PYTHON
+ret=0
case "$1" in
start)
echo -e "Starting ambari-server"
@@ -151,4 +152,4 @@ case "$1" in
exit 1
esac
-exit 0
+exit $?
@@ -224,7 +224,7 @@ def setup_security(args):
try:
actionDesc = actions[int(choice) - 1]
except IndexError:
- raise FatalException('Unknown option for setup-security command.')
+ raise FatalException(1, 'Unknown option for setup-security command.')
action = actionDesc[1]
action.execute()