fix(install): guard refresh_gateway_service_if_loaded to prevent double restart
- Only call refresh_gateway_service_if_loaded on upgrades - Skip for fresh installs (daemon was just installed and started) - Fixes Greptile review feedback
This commit is contained in:
parent
0387f0f62c
commit
fdb23a41a9
@ -2442,10 +2442,11 @@ main() {
|
||||
# Install gateway daemon for fresh installs (not upgrades)
|
||||
if [[ "$is_upgrade" != "true" ]]; then
|
||||
install_gateway_daemon_if_needed
|
||||
else
|
||||
# Only refresh gateway service on upgrades (not fresh installs)
|
||||
refresh_gateway_service_if_loaded
|
||||
fi
|
||||
|
||||
refresh_gateway_service_if_loaded
|
||||
|
||||
# Step 6: Run doctor for migrations on upgrades and git installs
|
||||
local run_doctor_after=false
|
||||
if [[ "$is_upgrade" == "true" || "$INSTALL_METHOD" == "git" ]]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user