From 1eda1889a8ac0c1de27d25e5883963437708316d Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 14 Apr 2026 00:43:04 -0400 Subject: [PATCH] Don't run createrepo on service creation --- installJRMC | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/installJRMC b/installJRMC index 05775f9..c137c58 100755 --- a/installJRMC +++ b/installJRMC @@ -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