Don't run createrepo on service creation

This commit is contained in:
2026-04-14 00:43:04 -04:00
parent dd19c0d794
commit 1eda1889a8

View File

@@ -244,6 +244,14 @@ parse_input() {
echo "Warning: not all repositories have beta channels"
echo "If the MC package is unavailable, try using --mcrepo to select another repository"
fi
# If jriver-createrepo is being installed as a service, treat --createrepo
# as service configuration only and defer build/repo execution to the timer.
if [[ " ${SERVICES[*]} " =~ [[:space:]]jriver-createrepo[[:space:]] ]] && ((CREATEREPO_SWITCH)); then
debug "Deferring --createrepo execution while configuring jriver-createrepo service"
BUILD_SWITCH=0
CREATEREPO_SWITCH=0
fi
}
# @description Perform OS detection and generate OS-specific functions