aidevops 3.8.16 → 3.8.18
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/schedulers.sh +12 -5
- package/setup.sh +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.8.
|
|
1
|
+
3.8.18
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
|
@@ -534,14 +534,21 @@ _systemd_user_available() {
|
|
|
534
534
|
return 0
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
# Escape a value for safe embedding in a systemd unit Environment=
|
|
538
|
-
# systemd interprets % as specifiers (%h, %n, %t, etc.) and spaces
|
|
539
|
-
# key-value separators. This helper:
|
|
537
|
+
# Escape a value for safe embedding in a systemd unit Environment= or ExecStart=
|
|
538
|
+
# directive. systemd interprets % as specifiers (%h, %n, %t, etc.) and spaces
|
|
539
|
+
# as key-value separators. This helper:
|
|
540
540
|
# 1. Escapes \ → \\ (must be first to avoid double-escaping)
|
|
541
541
|
# 2. Doubles % → %% (escape specifiers)
|
|
542
542
|
# 3. Escapes embedded " → \"
|
|
543
543
|
# 4. Wraps the result in "..." (handles spaces and other shell metacharacters)
|
|
544
544
|
# Usage: escaped=$(_systemd_escape "$value")
|
|
545
|
+
#
|
|
546
|
+
# WARNING: Do NOT use for StandardOutput= or StandardError= directives.
|
|
547
|
+
# systemd does not strip outer quotes from those values — "append:/path" is
|
|
548
|
+
# treated as a literal filename with quote characters, failing silently.
|
|
549
|
+
# Use bare values for StandardOutput=/StandardError=:
|
|
550
|
+
# StandardOutput=append:${log_file} ← correct
|
|
551
|
+
# StandardOutput=$(_systemd_escape "append:${log_file}") ← WRONG
|
|
545
552
|
_systemd_escape() {
|
|
546
553
|
local _val="$1"
|
|
547
554
|
# Step 1: escape backslashes
|
|
@@ -660,8 +667,8 @@ Type=oneshot
|
|
|
660
667
|
KillMode=process
|
|
661
668
|
ExecStart=/bin/bash -lc $(_systemd_escape "$exec_command")
|
|
662
669
|
TimeoutStartSec=${timeout_sec}
|
|
663
|
-
${_service_extra}${_env_lines}StandardOutput
|
|
664
|
-
StandardError
|
|
670
|
+
${_service_extra}${_env_lines}StandardOutput=append:${log_file}
|
|
671
|
+
StandardError=append:${log_file}
|
|
665
672
|
" >"$service_file"
|
|
666
673
|
|
|
667
674
|
local _timer_lines=""
|
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.18
|
|
16
16
|
#
|
|
17
17
|
# Quick Install:
|
|
18
18
|
# npm install -g aidevops && aidevops update (recommended)
|