Skip to content

Commit

Permalink
Merge pull request #84 from NethServer/sdl-7194
Browse files Browse the repository at this point in the history
Fix PHP-FPM reload command in vhost actions NethServer/dev#7194
  • Loading branch information
stephdl authored Dec 3, 2024
2 parents 1d29b9e + e298bce commit b5ad7d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion imageroot/actions/destroy-vhost/30restart_services
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
4 changes: 2 additions & 2 deletions imageroot/actions/update-vhost/30SystemdServices
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

0 comments on commit b5ad7d0

Please sign in to comment.