skip subst sections if useSSL=0
This commit is contained in:
parent
b476a8becf
commit
0cc7cb97a2
4
.vscode/numbered-bookmarks.json
vendored
4
.vscode/numbered-bookmarks.json
vendored
@ -6,13 +6,13 @@
|
|||||||
-1,
|
-1,
|
||||||
30,
|
30,
|
||||||
44,
|
44,
|
||||||
690,
|
694,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
682
|
686
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
20
setup.sh
20
setup.sh
@ -644,15 +644,19 @@ for name in "${serverNames[@]}"; do
|
|||||||
done
|
done
|
||||||
sed -i "/${tag_servernames}/d" "${configPath}/${file_servernames}"
|
sed -i "/${tag_servernames}/d" "${configPath}/${file_servernames}"
|
||||||
|
|
||||||
# process SSL snippet
|
# process SSL snippet if using SSL
|
||||||
echo -e "updating ${warn}${configPath}/${file_ssl}${norm}"
|
if [ "${useSSL}" -eq 1 ]; then
|
||||||
sed -i -e "s%${tag_sslcert}%${CertPath}%" "${configPath}/${file_ssl}"
|
echo -e "updating ${warn}${configPath}/${file_ssl}${norm}"
|
||||||
sed -i -e "s%${tag_sslkey}%${KeyPath}%" "${configPath}/${file_ssl}"
|
sed -i -e "s%${tag_sslcert}%${CertPath}%" "${configPath}/${file_ssl}"
|
||||||
|
sed -i -e "s%${tag_sslkey}%${KeyPath}%" "${configPath}/${file_ssl}"
|
||||||
|
fi
|
||||||
|
|
||||||
# process mozModern SSL configuration
|
# process mozModern SSL configuration if using SSL
|
||||||
echo -e "updating ${warn}${configPath}/${file_mozmodern}${norm}"
|
if [ "${useSSL}" -eq 1 ]; then
|
||||||
sed -i -e "s%${tag_dhparam}%${DHPath}%" "${configPath}/${file_mozmodern}"
|
echo -e "updating ${warn}${configPath}/${file_mozmodern}${norm}"
|
||||||
sed -i -e "s%${tag_cachain}%${CAChainPath}%" "${configPath}/${file_mozmodern}"
|
sed -i -e "s%${tag_dhparam}%${DHPath}%" "${configPath}/${file_mozmodern}"
|
||||||
|
sed -i -e "s%${tag_cachain}%${CAChainPath}%" "${configPath}/${file_mozmodern}"
|
||||||
|
fi
|
||||||
|
|
||||||
# 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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user