From eb300252b840daba9275963339a624f4ec7f0398 Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Thu, 7 Mar 2024 11:33:23 -0500 Subject: [PATCH] Fix awx-autoreload in dev environment (#14968) Fix awx-autoreload, recent change made autoreload no longer take the command parameter --- tools/docker-compose/awx-autoreload | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/docker-compose/awx-autoreload b/tools/docker-compose/awx-autoreload index 37507c2451..446c653eec 100755 --- a/tools/docker-compose/awx-autoreload +++ b/tools/docker-compose/awx-autoreload @@ -1,8 +1,8 @@ #!/bin/env bash -if [ $# -lt 2 ]; then +if [ $# -lt 1 ]; then echo "Usage:" - echo " autoreload directory command" + echo " autoreload directory" exit 1 fi @@ -13,7 +13,6 @@ inotifywait -mrq -e create,delete,attrib,close_write,move --exclude '(/awx_devel since_last=$((this_reload-last_reload)) if [[ "$file" =~ ^[^.].*\.py$ ]] && [[ "$since_last" -gt 1 ]]; then echo "File changed: $file" - # if SUPERVISOR_CONFIG_PATH is defined run `supervisorctl -c $SUPERVISOR_CONFIG_PATH` else just run `supervisorctl` if [ -n "$SUPERVISOR_CONFIG_PATH" ]; then supervisorctl_command="supervisorctl -c $SUPERVISOR_CONFIG_PATH" else