Compare commits
1 Commits
b440119334
...
103485b4d9
| Author | SHA1 | Date | |
|---|---|---|---|
| 103485b4d9 |
@@ -158,19 +158,6 @@ main() {
|
|||||||
create_service_macos "$_dir"
|
create_service_macos "$_dir"
|
||||||
fi
|
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
|
# Installation complete
|
||||||
local _host=$(hostname -f 2>/dev/null || echo "localhost")
|
local _host=$(hostname -f 2>/dev/null || echo "localhost")
|
||||||
say "✅ Installation complete! Stalwart service is running."
|
say "✅ Installation complete! Stalwart service is running."
|
||||||
|
|||||||
Reference in New Issue
Block a user