Skip to content

Commit

Permalink
fix: Don't try and restart PHP services that have been uninstalled
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-c-anderson committed Jul 29, 2024
1 parent 41855ab commit 9a835d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
listen: "arvh restart php-fpm"
shell: >
set -eu -o pipefail;
for SRV in $(dpkg --list |grep php|grep fpm |awk '{print $2}'); do
for SRV in $(dpkg --list | grep php | grep fpm | grep '^ii' | awk '{print $2}'); do
(set -x && systemctl restart $SRV);
done
args:
Expand Down

0 comments on commit 9a835d9

Please sign in to comment.