From 0c650b503e3f04b740495891e407c918180b0e8c Mon Sep 17 00:00:00 2001 From: minutiae Date: Fri, 26 Apr 2024 23:28:40 -0400 Subject: [PATCH] fix: Ensure php8.3-fpm service is correctly enabled and restarted (#1965) --- scripts/features/php8.3.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/features/php8.3.sh b/scripts/features/php8.3.sh index 6171232aa..4cc3346d3 100644 --- a/scripts/features/php8.3.sh +++ b/scripts/features/php8.3.sh @@ -10,6 +10,14 @@ fi export DEBIAN_FRONTEND=noninteractive +SERVICE_STATUS=$(systemctl is-enabled php8.3-fpm.service) + +if [ "$SERVICE_STATUS" == "disabled" ]; +then + systemctl enable php8.3-fpm + service php8.3-fpm restart +fi + if [ -f /home/$WSL_USER_NAME/.homestead-features/php83 ] then echo "PHP 8.3 already installed."