From ce4aec4a9e9adfcc38e90b059c3d0fbd0b0e1442 Mon Sep 17 00:00:00 2001 From: Akatsukiro Date: Fri, 19 Jan 2024 12:53:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E7=BD=91=E7=AB=99=E6=97=B6=E7=9A=84RHEL=E7=B3=BB=E5=86=99?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 20e8cbb..a3f57b4 100644 --- a/install.sh +++ b/install.sh @@ -242,8 +242,13 @@ setup_apache() { EOF - a2ensite lsky.conf - systemctl restart apache2 + if [[ $systemFlag == "1" ]] || [[ $systemFlag == "2" ]]; then + a2ensite lsky.conf + systemctl restart apache2 + elif [[ $systemFlag == "3" ]]; then + systemctl restart php-fpm.service + systemctl restart httpd + fi } download_lsky