feat: import Sea vHost single-server testing release

This commit is contained in:
canglan committed 2026-10-30 08:39:10 +08:00
commit 248badd33e
441 files changed
+63221

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
[[ ${EUID} -eq 0 ]] || { echo 'Runtime roots must be prepared as root.' >&2; exit 1; }
# These targets must exist before systemd constructs the agent mount namespace.
# Keep installed directories' owners/modes; only create missing components.
for managed in /www/server/nodejs /www/server/nodejs/vhost /www/server/nodejs/vhost/pids /www/server/python_manager /www/server/python_manager/versions; do
[[ ! -L "$managed" && ( ! -e "$managed" || -d "$managed" ) ]] || { echo "Unsafe runtime directory: $managed" >&2; exit 1; }
[[ -d "$managed" ]] || install -d -o root -g root -m 0755 "$managed"
done