修复 update 后 start.sh 无执行权限导致服务无法启动。
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ setup_systemd_service() {
|
||||
restart_grade_service() {
|
||||
load_env_port
|
||||
mkdir -p "${INSTALL_DIR}/uploads" "${INSTALL_DIR}/backups"
|
||||
chmod +x "${INSTALL_DIR}/deploy/start.sh"
|
||||
find "${INSTALL_DIR}/deploy" -name "*.sh" -exec chmod +x {} + 2>/dev/null || true
|
||||
log_info "重启 grade-archive(端口 ${WEB_PORT})…"
|
||||
systemctl restart grade-archive
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user