Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 0c650b5

Browse files
authored
fix: Ensure php8.3-fpm service is correctly enabled and restarted (#1965)
1 parent 7b209c3 commit 0c650b5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/features/php8.3.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ fi
1010

1111
export DEBIAN_FRONTEND=noninteractive
1212

13+
SERVICE_STATUS=$(systemctl is-enabled php8.3-fpm.service)
14+
15+
if [ "$SERVICE_STATUS" == "disabled" ];
16+
then
17+
systemctl enable php8.3-fpm
18+
service php8.3-fpm restart
19+
fi
20+
1321
if [ -f /home/$WSL_USER_NAME/.homestead-features/php83 ]
1422
then
1523
echo "PHP 8.3 already installed."

0 commit comments

Comments
 (0)