fixed exit status on check that was wrong
This commit is contained in:
parent
3ac219d0d4
commit
02d286a7df
1 changed files with 2 additions and 2 deletions
|
@ -9,9 +9,9 @@ FILE_TO_CHECK=${1:-/etc/run-cosmos-fleetlock-disable}
|
||||||
|
|
||||||
if [[ -e "$FILE_TO_CHECK" ]]; then
|
if [[ -e "$FILE_TO_CHECK" ]]; then
|
||||||
echo "WARNING: '$FILE_TO_CHECK' exists so fleetlock is disabled."
|
echo "WARNING: '$FILE_TO_CHECK' exists so fleetlock is disabled."
|
||||||
exit 0
|
exit 1
|
||||||
else
|
else
|
||||||
echo "OK: Fleetlock is not disabled"
|
echo "OK: Fleetlock is not disabled"
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue