Make Britney work

This commit is contained in:
Simon Quigley 2024-12-03 22:03:23 -06:00
parent b6f26a86bc
commit 25a4192c07

View File

@ -15,9 +15,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Configuration
LOG_DIR="/srv/lubuntu-ci/output/logs/britney"
SCRIPT_PATH="/srv/lubuntu-ci/repos/ci-tools/fetch-indexes"
MAX_LOG_AGE=86400 # 24 hours in seconds
# Ensure the log directory exists
mkdir -p $LOG_DIR
@ -30,7 +30,7 @@ for release in plucky oracular noble; do
export RELEASE="$release"
# Log file named by current UTC time (HH-MM-SS)
LOG_FILE="$LOG_DIR/$RELEASE_$(date -u +"%H-%M-%S").log"
LOG_FILE="$LOG_DIR/${release}_$(date -u +"%H-%M-%S").log"
echo "$(date -u +"%Y-%m-%d %H:%M:%S") - Running Britney for $RELEASE" >> "$LOG_FILE"
"$SCRIPT_PATH" >> "$LOG_FILE" 2>&1