Skip to content

Commit

Permalink
Simplified Bash boolean strings
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Apr 29, 2024
1 parent ed69115 commit f7af873
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/remote/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,17 @@ bash helpers/portfwd-user.sh --user=bob --allow-tcp-forwarding=local \

################################################################################

if [ "$SUPERVISOR_RELOAD" = 'true' ]; then
if [ "$SUPERVISOR_RELOAD" = true ]; then
echo 'Sending SIGHUP to supervisord (pid 1)'
kill -sHUP 1
fi

if [ "$SUPERVISOR_UPDATE" = 'true' ]; then
if [ "$SUPERVISOR_UPDATE" = true ]; then
echo 'Running supervisorctl update'
supervisorctl update
fi

if [ "$SUPERVISOR_SHUTDOWN" = 'true' ]; then
if [ "$SUPERVISOR_SHUTDOWN" = true ]; then
echo 'Shutting down supervisor'
# The container will restart if its restart policy is set that way
kill 1
Expand Down

0 comments on commit f7af873

Please sign in to comment.