add missing sed s terminator on nginx subst sections
This commit is contained in:
parent
4b54ba596c
commit
45379c4908
8
setup.sh
8
setup.sh
@ -633,7 +633,7 @@ sed -i -e "s%${tag_cachain}%${CAChainPath}%" "${configPath}/${file_mozmodern}"
|
|||||||
|
|
||||||
# process LAN IP in nginx.conf
|
# process LAN IP in nginx.conf
|
||||||
echo -e "updating ${warn}${configPath}/${file_lanip}${norm}"
|
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 using PHP: process buffers.conf
|
||||||
if [ "${usePHP}" -eq 1 ]; then
|
if [ "${usePHP}" -eq 1 ]; then
|
||||||
@ -647,8 +647,8 @@ if [ "${phpType}" = "tcp" ]; then
|
|||||||
# copy .insert file into nginx.conf
|
# copy .insert file into nginx.conf
|
||||||
sed -i -e "/${tag_phphandler}/{r ${configPath}/${file_phpTCP}" -e 'd}' "${configPath}/${file_phphandler}"
|
sed -i -e "/${tag_phphandler}/{r ${configPath}/${file_phpTCP}" -e 'd}' "${configPath}/${file_phphandler}"
|
||||||
# update tags with address and port information
|
# update tags with address and port information
|
||||||
sed -i "s/${tag_phpAddr}/${phpAddr}" "${configPath}/${file_phpTCP}"
|
sed -i "s/${tag_phpAddr}/${phpAddr}/" "${configPath}/${file_phpTCP}"
|
||||||
sed -i "s/${tag_phpPort}/${phpPort}" "${configPath}/${file_phpTCP}"
|
sed -i "s/${tag_phpPort}/${phpPort}/" "${configPath}/${file_phpTCP}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if using PHP-SOCK: add upstream handler in nginx.conf
|
# if using PHP-SOCK: add upstream handler in nginx.conf
|
||||||
@ -657,7 +657,7 @@ if [ "${phpType}" = "sockets" ]; then
|
|||||||
# copy .insert file into nginx.conf
|
# copy .insert file into nginx.conf
|
||||||
sed -i -e "/${tag_phphandler}/{r ${configPath}/${file_phpSOCK}" -e 'd}' "${configPath}/${file_phphandler}"
|
sed -i -e "/${tag_phphandler}/{r ${configPath}/${file_phpSOCK}" -e 'd}' "${configPath}/${file_phphandler}"
|
||||||
# update tag with version number
|
# update tag with version number
|
||||||
sed -i "s/${tag_phpVersion}/${phpVersion}" "${configPath}/${file_phpSOCK}"
|
sed -i "s/${tag_phpVersion}/${phpVersion}/" "${configPath}/${file_phpSOCK}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# notify user file updates are completed
|
# notify user file updates are completed
|
||||||
|
Loading…
Reference in New Issue
Block a user