add missing sed s terminator on nginx subst sections

This commit is contained in:
Asif Bacchus 2019-01-06 01:53:35 -07:00
parent 4b54ba596c
commit 45379c4908

View File

@ -633,7 +633,7 @@ sed -i -e "s%${tag_cachain}%${CAChainPath}%" "${configPath}/${file_mozmodern}"
# process LAN IP in nginx.conf
echo -e "updating ${warn}${configPath}/${file_lanip}${norm}"
sed -i "s/${tag_lanip}/${IP4}" "${configPath}/${file_lanip}"
sed -i "s/${tag_lanip}/${IP4}/" "${configPath}/${file_lanip}"
# if using PHP: process buffers.conf
if [ "${usePHP}" -eq 1 ]; then
@ -647,8 +647,8 @@ if [ "${phpType}" = "tcp" ]; then
# copy .insert file into nginx.conf
sed -i -e "/${tag_phphandler}/{r ${configPath}/${file_phpTCP}" -e 'd}' "${configPath}/${file_phphandler}"
# update tags with address and port information
sed -i "s/${tag_phpAddr}/${phpAddr}" "${configPath}/${file_phpTCP}"
sed -i "s/${tag_phpPort}/${phpPort}" "${configPath}/${file_phpTCP}"
sed -i "s/${tag_phpAddr}/${phpAddr}/" "${configPath}/${file_phpTCP}"
sed -i "s/${tag_phpPort}/${phpPort}/" "${configPath}/${file_phpTCP}"
fi
# if using PHP-SOCK: add upstream handler in nginx.conf
@ -657,7 +657,7 @@ if [ "${phpType}" = "sockets" ]; then
# copy .insert file into nginx.conf
sed -i -e "/${tag_phphandler}/{r ${configPath}/${file_phpSOCK}" -e 'd}' "${configPath}/${file_phphandler}"
# update tag with version number
sed -i "s/${tag_phpVersion}/${phpVersion}" "${configPath}/${file_phpSOCK}"
sed -i "s/${tag_phpVersion}/${phpVersion}/" "${configPath}/${file_phpSOCK}"
fi
# notify user file updates are completed