Skip to content

Commit

Permalink
postinstall: supply missing "alternatives" php-fpm.sock on Debian 10
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-utkin committed Jul 5, 2024
1 parent 33b2e51 commit 52102a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions misc/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,11 @@ case "$1" in
sed -i 's/snakeoil.conf/subdomain.conf/g' /etc/nginx/sites-enabled/bluecherry.conf
fi

# Debian 10 lacks version-agnostic link for php-fpm.sock. Add it in a compatible way.
if ! [[ -f /run/php/php-fpm.sock ]]; then
update-alternatives --install /run/php/php-fpm.sock php-fpm.sock /run/php/php*-fpm.sock 0
fi

install_certbot

# Install crontabs for subdomain renewal and SSL renewal using certbot
Expand Down

0 comments on commit 52102a1

Please sign in to comment.