fix(deploy): 在线更新 - 在停服前校验更新器写入权限并修正 systemd 可写目录

This commit is contained in:
ddCat
2026-08-31 06:55:14 +08:00
parent 9e718fcf4a
commit b23c839068
3 changed files with 46 additions and 1 deletions

View File

@@ -97,7 +97,7 @@ install_service() {
'PrivateTmp=true' \
'ProtectHome=true' \
'ProtectSystem=full' \
"ReadWritePaths=${INSTALL_DIR} /var/lib/open-ai-canvas-updater ${SOCKET_DIR} ${UPDATER_BIN}" \
"ReadWritePaths=${INSTALL_DIR} /var/lib/open-ai-canvas-updater ${SOCKET_DIR} /usr/local/bin" \
'' \
'[Install]' \
'WantedBy=multi-user.target' > "$temporary_service"