From 573b18bcc9856f320c1f74b444e4c6a83da0068e Mon Sep 17 00:00:00 2001 From: wikiboss Date: Sat, 12 Sep 2026 16:59:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20deploy.sh=20=E4=BD=BF=E7=94=A8=20sudo=20?= =?UTF-8?q?-n=20=E7=A1=AE=E4=BF=9D=E9=9D=9E=E4=BA=A4=E4=BA=92=E5=BC=8F?= =?UTF-8?q?=E9=87=8D=E8=BD=BD=20PHP-FPM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 340d093..0e5d8ce 100644 --- a/deploy.sh +++ b/deploy.sh @@ -44,7 +44,7 @@ chmod -R 775 public/uploads 2>/dev/null || true # 平滑重载 PHP-FPM 刷新 OPcache 字节码缓存 if [ -x "/etc/init.d/php-fpm-73" ]; then if command -v sudo >/dev/null 2>&1; then - sudo /etc/init.d/php-fpm-73 reload >> "${LOG_FILE}" 2>&1 || true + sudo -n /etc/init.d/php-fpm-73 reload >> "${LOG_FILE}" 2>&1 || true else /etc/init.d/php-fpm-73 reload >> "${LOG_FILE}" 2>&1 || true fi