From 6c31d2938951c106ef840030e9358c96ec2bb585 Mon Sep 17 00:00:00 2001 From: Aryamanraj <20cs3011@rgipt.ac.in> Date: Tue, 7 Apr 2026 10:23:53 +0530 Subject: [PATCH 1/2] feat: integrate updater installation into container update process --- setup_payram.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup_payram.sh b/setup_payram.sh index d165337..8aab7eb 100755 --- a/setup_payram.sh +++ b/setup_payram.sh @@ -2122,6 +2122,7 @@ update_payram_container() { log "INFO" "Same version selected — restarting container without re-pulling..." docker restart payram log "SUCCESS" "PayRam restarted on $IMAGE_TAG" + install_payram_updater return 0 fi @@ -3295,7 +3296,9 @@ install_payram_updater() { fi print_color "gray" " Installing..." - if FORCE_REINSTALL=false QUIET=true ENABLE_SERVICE=true INIT_FLAGS="--no-autoupdate" \ + local enable_svc="true" + [[ "$OS_FAMILY" == "macos" ]] && enable_svc="false" + if FORCE_REINSTALL=false QUIET=true ENABLE_SERVICE="$enable_svc" INIT_FLAGS="--no-autoupdate" \ bash "$updater_tmp" >/dev/null 2>&1; then rm -f "$updater_tmp" print_color "green" " ✅ PayRam Updater installed" From ba7039b2cce9e4cb33a0c2727d52b92c984cf9b7 Mon Sep 17 00:00:00 2001 From: Aryamanraj <20cs3011@rgipt.ac.in> Date: Wed, 8 Apr 2026 11:15:19 +0530 Subject: [PATCH 2/2] fix: ensure service is disabled for macOS during updater installation --- setup_payram.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup_payram.sh b/setup_payram.sh index 8aab7eb..4e78972 100755 --- a/setup_payram.sh +++ b/setup_payram.sh @@ -3297,8 +3297,10 @@ install_payram_updater() { print_color "gray" " Installing..." local enable_svc="true" - [[ "$OS_FAMILY" == "macos" ]] && enable_svc="false" - if FORCE_REINSTALL=false QUIET=true ENABLE_SERVICE="$enable_svc" INIT_FLAGS="--no-autoupdate" \ + if [[ "$OS_FAMILY" == "macos" || "$(uname -s)" == "Darwin" ]]; then + enable_svc="false" + fi + if FORCE_REINSTALL=true QUIET=true ENABLE_SERVICE="$enable_svc" INIT_FLAGS="--no-autoupdate" \ bash "$updater_tmp" >/dev/null 2>&1; then rm -f "$updater_tmp" print_color "green" " ✅ PayRam Updater installed"