From 45379c49080a14ed7a88a6e6bd96a19bace34801 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 6 Jan 2019 01:53:35 -0700 Subject: [PATCH] add missing sed s terminator on nginx subst sections --- setup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index 5853999..009d389 100755 --- a/setup.sh +++ b/setup.sh @@ -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