From e298bce40333e76b857d1ab06917f721773e8397 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Tue, 3 Dec 2024 09:40:24 +0100 Subject: [PATCH] Fix (service): reload command for PHP-FPM in destroy and update vhost actions --- imageroot/actions/destroy-vhost/30restart_services | 2 +- imageroot/actions/update-vhost/30SystemdServices | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/imageroot/actions/destroy-vhost/30restart_services b/imageroot/actions/destroy-vhost/30restart_services index 678b502..135c547 100755 --- a/imageroot/actions/destroy-vhost/30restart_services +++ b/imageroot/actions/destroy-vhost/30restart_services @@ -37,4 +37,4 @@ for folder in PhpServiceArray: subprocess.run(["systemctl", "--user", "disable","--now", "phpfpm@"+ConfiguredServices[0].replace('php','')+".service"]) # reload the containers -subprocess.run(["systemctl", "--user", "reload", "phpfpm@\*.service"]) +subprocess.run(["systemctl", "--user", "reload", "phpfpm@*.service"]) diff --git a/imageroot/actions/update-vhost/30SystemdServices b/imageroot/actions/update-vhost/30SystemdServices index 4032ea7..ad0da66 100755 --- a/imageroot/actions/update-vhost/30SystemdServices +++ b/imageroot/actions/update-vhost/30SystemdServices @@ -51,7 +51,7 @@ if PhpVersion: subprocess.run(["download-php-fpm",str(PhpVersion)]) # start the container if stopped subprocess.run(["systemctl", "--user", "enable", "--now", "phpfpm@"+str(PhpVersion)+".service"]) - subprocess.run(["systemctl", "--user", "reload", "phpfpm@\*.service"]) + subprocess.run(["systemctl", "--user", "reload", "phpfpm@*.service"]) else: subprocess.run(["systemctl", "--user", "reload", "nginx.service"]) - subprocess.run(["systemctl", "--user", "reload", "phpfpm@\*.service"]) + subprocess.run(["systemctl", "--user", "reload", "phpfpm@*.service"])