🗃️ Committing everything that changed 🗃️
Some checks are pending
release-tag / release-image (push) Waiting to run

rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh
This commit is contained in:
casjay 2024-09-02 14:46:37 -04:00
parent 27ac0ee957
commit e3dc2d6c0e
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -482,6 +482,7 @@ __post_execute() {
done done
fi fi
if [ -f "$CACHE_CONFIG_FILE" ]; then if [ -f "$CACHE_CONFIG_FILE" ]; then
mkdir -p "$DATA_DIR/cache"
act_runner cache-server --config $CACHE_CONFIG_FILE -s 0.0.0.0 -p $RUNNER_CACHE_PORT 2>>/dev/stderr | tee -a -p "$LOG_DIR/cache.log" & act_runner cache-server --config $CACHE_CONFIG_FILE -s 0.0.0.0 -p $RUNNER_CACHE_PORT 2>>/dev/stderr | tee -a -p "$LOG_DIR/cache.log" &
execPid=$! execPid=$!
if sleep 5 && ps ax | awk '{print $1}' | grep -v grep | grep -q "$execPid$"; then if sleep 5 && ps ax | awk '{print $1}' | grep -v grep | grep -q "$execPid$"; then