- Create custom-cache-tag for pkglistgen to enable separate cache dir name in case of parallel running - Add custom-cache-tag to SLSA services - Check for systemd service instead of process to ensure that SLSA services will not run in parallel - Change pkglisgen timer to avoid overlap with relpkggen timer
15 lines
527 B
Bash
Executable File
15 lines
527 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
PROJECT=$1
|
|
LOG_DIR="/var/log/openSUSE-release-tools/${PROJECT}"
|
|
[ ! -d "${LOG_DIR}" ] && mkdir ${LOG_DIR}
|
|
|
|
logger() {
|
|
date -Is >> ${LOG_DIR}/relpkggen.log
|
|
echo "$1" >> ${LOG_DIR}/relpkggen.log
|
|
}
|
|
|
|
logger "[START] Start osrt-relpkggen@${PROJECT}.service"
|
|
/usr/bin/osrt-pkglistgen -A ${API_URL} --debug update_and_solve -p ${PROJECT} -s target --only-release-packages --custom-cache-tag releasepackages --force >> ${LOG_DIR}/relpkggen.log 2>&1
|
|
logger "[FINISH] Finish osrt-relpkggen@${PROJECT}.service"
|