mirror of
https://github.com/casjaysdevdocker/gitea
synced 2024-11-21 17:23:06 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh
This commit is contained in:
parent
22b04b0325
commit
d8e5a652ee
@ -369,7 +369,7 @@ __post_execute() {
|
|||||||
if [ -n "$multi" ] && [ -d "$multi" ]; then
|
if [ -n "$multi" ] && [ -d "$multi" ]; then
|
||||||
unset pid is_running name
|
unset pid is_running name
|
||||||
name="$(basename "$multi")"
|
name="$(basename "$multi")"
|
||||||
if [ -f "$$multi/$name.yaml" ] && [ -f "$multi/runners" ]; then
|
if [ -f "$multi/$name.yaml" ] && [ -f "$multi/runners" ]; then
|
||||||
act_runner daemon --config $multi/$name.yaml &
|
act_runner daemon --config $multi/$name.yaml &
|
||||||
local pid=$!
|
local pid=$!
|
||||||
sleep 5 && ps ax | awk '{print $1}' | grep -v grep | grep -q "$pid$" && is_running="yes"
|
sleep 5 && ps ax | awk '{print $1}' | grep -v grep | grep -q "$pid$" && is_running="yes"
|
||||||
|
Loading…
Reference in New Issue
Block a user