Compare commits
1 Commits
103485b4d9
...
b440119334
| Author | SHA1 | Date | |
|---|---|---|---|
| b440119334 |
@@ -158,6 +158,19 @@ main() {
|
||||
create_service_macos "$_dir"
|
||||
fi
|
||||
|
||||
# Wait for service to be responsive
|
||||
say "⏳ Waiting for Stalwart to start..."
|
||||
local _wait_attempts=0
|
||||
local _max_wait=30
|
||||
while [ $_wait_attempts -lt $_max_wait ]; do
|
||||
if curl -sf -m 2 "http://localhost:8080/login" >/dev/null 2>&1; then
|
||||
say "✓ Stalwart service is responding"
|
||||
break
|
||||
fi
|
||||
_wait_attempts=$((_wait_attempts + 1))
|
||||
sleep 1
|
||||
done
|
||||
|
||||
# Installation complete
|
||||
local _host=$(hostname -f 2>/dev/null || echo "localhost")
|
||||
say "✅ Installation complete! Stalwart service is running."
|
||||
|
||||
Reference in New Issue
Block a user