mirror of
https://github.com/casjaysdevdocker/gitea
synced 2024-11-21 23: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
07c8321d67
commit
f06d0a1bf3
@ -364,7 +364,9 @@ __post_execute() {
|
|||||||
# show message
|
# show message
|
||||||
__banner "$postMessageST"
|
__banner "$postMessageST"
|
||||||
# commands to execute
|
# commands to execute
|
||||||
|
if [ -d "$CONF_DIR/multi" ]; then
|
||||||
for multi in "$CONF_DIR/multi"/*; do
|
for multi in "$CONF_DIR/multi"/*; do
|
||||||
|
if [ -n "$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
|
||||||
@ -375,8 +377,9 @@ __post_execute() {
|
|||||||
echo "$pid" >"$RUN_DIR/act_runner.$name.pid"
|
echo "$pid" >"$RUN_DIR/act_runner.$name.pid"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
act_runner cache-server --config $CONF_DIR/daemon.yaml -s 0.0.0.0 -p $SERVICE_PORT 2>>/dev/stderr | tee -a -p "$LOG_DIR/act_runner_cache.log" &
|
act_runner cache-server --config $CONF_DIR/daemon.yaml -s 0.0.0.0 -p $SERVICE_PORT 2>>/dev/stderr | tee -a -p "$LOG_DIR/act_runner_cache.log" &
|
||||||
execPid=$!
|
execPid=$!
|
||||||
sleep 5 && ps ax | awk '{print $1}' | grep -v grep | grep -q "$execPid$" && return 0 || return 2
|
sleep 5 && ps ax | awk '{print $1}' | grep -v grep | grep -q "$execPid$" && return 0 || return 2
|
||||||
|
Loading…
Reference in New Issue
Block a user