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

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

No files matched your search

+1 -1
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"