From 98fbada0f0567967b2930ad46dc1f0360b5e7db9 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 26 Jul 2024 07:16:58 +0200 Subject: [PATCH] make waiting time configurable --- etc/archboot/server-update.conf | 2 ++ usr/bin/archboot-server-update.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/archboot/server-update.conf b/etc/archboot/server-update.conf index f21e60094..b377de061 100644 --- a/etc/archboot/server-update.conf +++ b/etc/archboot/server-update.conf @@ -2,6 +2,8 @@ # created by Tobias Powalowski # set your managed architectures _SERVER_ARCH="x86_64 aarch64 riscv64" +# set your time before next architecture is built (value in seconds) +_SERVER_WAIT="3600" # set program updates that trigger new server release _TRIGGER="archboot archboot-arm archboot-riscv archlinux-keyring archlinuxarm-keyring bcachefs-tools btrfs-progs coreutils diff --git a/usr/bin/archboot-server-update.sh b/usr/bin/archboot-server-update.sh index 74640ea55..f13723ac1 100755 --- a/usr/bin/archboot-server-update.sh +++ b/usr/bin/archboot-server-update.sh @@ -31,7 +31,7 @@ for i in ${_SERVER_ARCH}; do # if trigger successful, release new image to server if rg -qw "${k}" "${i}"/var/log/pacman.log; then archboot-"${i}"-server-release.sh || echo "Error: ${i} release!" >> error.log - sleep 3600 + sleep "${_SERVER_WAIT}" break fi done