Skip to content

Commit 0657647

Browse files
committed
Fix leading slash bug in sed, respect port range limit. Thanks @Lupul!
1 parent f18c1d2 commit 0657647

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ if [ "$nginx" = 'yes' ]; then
10891089
v_tpl=$(echo "$v" | sed -e 's/[.]//')
10901090
cp -f $hestiacp/multiphp/nginx/PHP-$v_tpl.* $HESTIA/data/templates/web/nginx/
10911091
cp -f $hestiacp/php-fpm/dummy.conf /etc/php/$v/fpm/pool.d/
1092-
sed -i "/s/9999/9999$v_tpl/g" /etc/php/$v/fpm/pool.d/dummy.conf
1092+
sed -i "s/9999/99$v_tpl/g" /etc/php/$v/fpm/pool.d/dummy.conf
10931093
done
10941094
cp -f $hestiacp/php-fpm/www.conf /etc/php/$fpm_v/fpm/pool.d/
10951095
chmod a+x $HESTIA/data/templates/web/nginx/*.sh

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ if [ "$nginx" = 'yes' ]; then
10631063
v_tpl=$(echo "$v" | sed -e 's/[.]//')
10641064
cp -f $hestiacp/multiphp/nginx/PHP-$v_tpl.* $HESTIA/data/templates/web/nginx/
10651065
cp -f $hestiacp/php-fpm/dummy.conf /etc/php/$v/fpm/pool.d/
1066-
sed -i "/s/9999/9999$v_tpl/g" /etc/php/$v/fpm/pool.d/dummy.conf
1066+
sed -i "s/9999/99$v_tpl/g" /etc/php/$v/fpm/pool.d/dummy.conf
10671067
done
10681068
cp -f $hestiacp/php-fpm/www.conf /etc/php/$fpm_v/fpm/pool.d/
10691069
chmod a+x $HESTIA/data/templates/web/nginx/*.sh

install/upgrade/0.9.8-29.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ if [ "$php_versions" -gt 1 ]; then
130130
for v in $(ls /etc/php/); do
131131
cp -f $hestiacp/php-fpm/dummy.conf /etc/php/$d/fpm/pool.d/
132132
v1=$(echo "$v" | sed -e 's/[.]//')
133-
sed -i "s/9999/9999$v1/g" /etc/php/$v/fpm/pool.d/dummy.conf
133+
sed -i "s/9999/99$v1/g" /etc/php/$v/fpm/pool.d/dummy.conf
134134
done
135135
fi
136136

0 commit comments

Comments
 (0)