aidevops 3.8.56 → 3.8.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/aidevops.sh +1 -1
- package/package.json +1 -1
- package/setup-modules/agent-deploy.sh +12 -19
- package/setup.sh +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.8.
|
|
1
|
+
3.8.58
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
|
@@ -19,24 +19,19 @@ IFS=$'\n\t'
|
|
|
19
19
|
# auto-restart mechanism exists, we start it manually.
|
|
20
20
|
#######################################
|
|
21
21
|
_restart_pulse_if_running() {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
local pulse_pid=""
|
|
26
|
-
pulse_pid=$(grep -oE '[0-9]+' "$pid_file" | head -1) || return 0
|
|
27
|
-
[[ -n "$pulse_pid" ]] || return 0
|
|
28
|
-
|
|
29
|
-
# Check if the process is actually alive
|
|
30
|
-
if ! kill -0 "$pulse_pid" 2>/dev/null; then
|
|
22
|
+
if ! pgrep -f pulse-wrapper.sh >/dev/null; then
|
|
23
|
+
# Not running, nothing to do
|
|
31
24
|
return 0
|
|
32
25
|
fi
|
|
33
26
|
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
local old_pid
|
|
28
|
+
old_pid=$(pgrep -f pulse-wrapper.sh | head -1)
|
|
29
|
+
print_info "Restarting pulse (PID $old_pid) to load updated scripts..."
|
|
30
|
+
pkill -f pulse-wrapper.sh || true
|
|
36
31
|
|
|
37
32
|
# Wait for it to die
|
|
38
33
|
local wait_count=0
|
|
39
|
-
while
|
|
34
|
+
while pgrep -f pulse-wrapper.sh >/dev/null && [[ "$wait_count" -lt 10 ]]; do
|
|
40
35
|
sleep 1
|
|
41
36
|
wait_count=$((wait_count + 1))
|
|
42
37
|
done
|
|
@@ -45,13 +40,11 @@ _restart_pulse_if_running() {
|
|
|
45
40
|
sleep 5
|
|
46
41
|
|
|
47
42
|
# Check if it auto-restarted
|
|
48
|
-
if
|
|
49
|
-
local new_pid
|
|
50
|
-
new_pid=$(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return 0
|
|
54
|
-
fi
|
|
43
|
+
if pgrep -f pulse-wrapper.sh >/dev/null; then
|
|
44
|
+
local new_pid
|
|
45
|
+
new_pid=$(pgrep -f pulse-wrapper.sh | head -1)
|
|
46
|
+
print_success "Pulse restarted (new PID $new_pid)"
|
|
47
|
+
return 0
|
|
55
48
|
fi
|
|
56
49
|
|
|
57
50
|
# No auto-restart — start it manually
|
package/setup.sh
CHANGED
|
@@ -12,7 +12,7 @@ shopt -s inherit_errexit 2>/dev/null || true
|
|
|
12
12
|
# AI Assistant Server Access Framework Setup Script
|
|
13
13
|
# Helps developers set up the framework for their infrastructure
|
|
14
14
|
#
|
|
15
|
-
# Version: 3.8.
|
|
15
|
+
# Version: 3.8.58
|
|
16
16
|
#
|
|
17
17
|
# Quick Install:
|
|
18
18
|
# npm install -g aidevops && aidevops update (recommended)
|