Compare commits
No commits in common. "25a4192c07578795244eccfa4841ac9068529c62" and "30e9d2eb5f36b63d08ee262291e1116b68989664" have entirely different histories.
25a4192c07
...
30e9d2eb5f
@ -17,7 +17,8 @@
|
|||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
LOG_DIR="/srv/lubuntu-ci/output/logs/britney"
|
LOG_DIR="/srv/lubuntu-ci/output/logs/britney"
|
||||||
SCRIPT_PATH="/srv/lubuntu-ci/repos/ci-tools/fetch-indexes"
|
SCRIPT_PATH="fetch-indexes"
|
||||||
|
MAX_LOG_AGE=86400 # 24 hours in seconds
|
||||||
|
|
||||||
# Ensure the log directory exists
|
# Ensure the log directory exists
|
||||||
mkdir -p $LOG_DIR
|
mkdir -p $LOG_DIR
|
||||||
@ -30,7 +31,7 @@ for release in plucky oracular noble; do
|
|||||||
export RELEASE="$release"
|
export RELEASE="$release"
|
||||||
|
|
||||||
# Log file named by current UTC time (HH-MM-SS)
|
# 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"
|
echo "$(date -u +"%Y-%m-%d %H:%M:%S") - Running Britney for $RELEASE" >> "$LOG_FILE"
|
||||||
"$SCRIPT_PATH" >> "$LOG_FILE" 2>&1
|
"$SCRIPT_PATH" >> "$LOG_FILE" 2>&1
|
||||||
|
@ -8,4 +8,4 @@ Type=simple
|
|||||||
User=lugito
|
User=lugito
|
||||||
Group=lugito
|
Group=lugito
|
||||||
WorkingDirectory=/srv/lubuntu-ci/repos/ci-tools
|
WorkingDirectory=/srv/lubuntu-ci/repos/ci-tools
|
||||||
ExecStart=/srv/lubuntu-ci/repos/ci-tools/run-britney
|
ExecStart=/usr/bin/python3 /srv/lubuntu-ci/repos/ci-tools/run-britney
|
||||||
|
Loading…
x
Reference in New Issue
Block a user