This commit is contained in:
root
2026-05-18 06:48:30 +00:00
parent f1145e3a36
commit e638a4656c
14 changed files with 172 additions and 11 deletions

View File

@@ -460,6 +460,24 @@ normalize_repo_root() {
WEBTTY_SHELL="$ROOT_DIR/scripts/linux/webtty_shell.sh"
}
ensure_runtime_dirs_owned_by_live() {
local rel path
for rel in \
config \
logs \
downloads \
backup \
backup_config \
.pm2 \
.process_runner \
services/neko/data
do
path="$ROOT_DIR/$rel"
mkdir -p "$path"
chown -R live:live "$path" 2>/dev/null || true
done
}
install_base_packages() {
log "Installing base packages"
export DEBIAN_FRONTEND=noninteractive