Skip to content

Commit b993aa6

Browse files
committed
Create dummy php-fpm configs if missing
1 parent a5eb6ea commit b993aa6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bin/v-rebuild-web-domains

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
6767
fi
6868
fi
6969

70+
# Create dummy php-fpm configs if missing
71+
for php_folder in /etc/php/*; do
72+
[ ! -d "${php_folder}/fpm/pool.d/" ] && continue
73+
74+
v_php="$(basename $php_folder)"
75+
if [ ! -f "/etc/php/${v_php}/fpm/pool.d/dummy.conf" ]; then
76+
cp -f "$HESTIA_INSTALL_DIR/php-fpm/dummy.conf" "/etc/php/${v_php}/fpm/pool.d/"
77+
sed -i "s/9999/99${v_php//.}/g" "/etc/php/${v_php}/fpm/pool.d/dummy.conf"
78+
fi
79+
done
80+
7081
# Deleting backend configs
7182
if [ ! -z "$WEB_BACKEND" ]; then
7283
if [ "$WEB_BACKEND_POOL" = 'user' ]; then

0 commit comments

Comments
 (0)