From 7d896d5e3ea316aee89597741028913ad4862f56 Mon Sep 17 00:00:00 2001 From: casjay Date: Mon, 12 Aug 2024 18:29:01 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh --- rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh b/rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh index aae9df8..9e23932 100755 --- a/rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh +++ b/rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh @@ -379,12 +379,12 @@ __post_execute() { __banner "$postMessageST" # commands to execute if [ -d "$CONF_DIR/multi" ]; then - for multi in "$CONF_DIR/multi"/*; do - if [ -n "$multi" ] && [ -d "$multi" ]; then + for multi_dir in "$CONF_DIR/multi"/*; do + if [ -n "$multi_dir" ] && [ -d "$multi_dir" ]; then unset pid is_running name - name="$(basename "$multi")" - if [ -f "$multi/daemon.yaml" ] && [ -f "$multi/runners" ]; then - act_runner daemon --config $multi/daemon.yaml & + name="$(basename "$multi_dir")" + if [ -f "$multi_dir/daemon.yaml" ] && [ -f "$multi_dir/runners" ]; then + act_runner daemon --config $multi_dir/daemon.yaml & pid=$! sleep 5 && ps ax | awk '{print $1}' | grep -v grep | grep -q "$pid$" && is_running="yes" if [ "$is_running" = "yes" ]; then