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, | ||||
| 				30, | ||||
| 				44, | ||||
| 				690, | ||||
| 				694, | ||||
| 				-1, | ||||
| 				-1, | ||||
| 				-1, | ||||
| 				-1, | ||||
| 				-1, | ||||
| 				682 | ||||
| 				686 | ||||
| 			] | ||||
| 		} | ||||
| 	] | ||||
|  | ||||
							
								
								
									
										20
									
								
								setup.sh
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								setup.sh
									
									
									
									
									
								
							| @ -644,15 +644,19 @@ for name in "${serverNames[@]}"; do | ||||
| done | ||||
| sed -i "/${tag_servernames}/d" "${configPath}/${file_servernames}" | ||||
| 
 | ||||
| # process SSL snippet | ||||
| echo -e "updating ${warn}${configPath}/${file_ssl}${norm}" | ||||
| sed -i -e "s%${tag_sslcert}%${CertPath}%" "${configPath}/${file_ssl}" | ||||
| sed -i -e "s%${tag_sslkey}%${KeyPath}%" "${configPath}/${file_ssl}" | ||||
| # process SSL snippet if using SSL | ||||
| if [ "${useSSL}" -eq 1 ]; then | ||||
|     echo -e "updating ${warn}${configPath}/${file_ssl}${norm}" | ||||
|     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 | ||||
| echo -e "updating ${warn}${configPath}/${file_mozmodern}${norm}" | ||||
| sed -i -e "s%${tag_dhparam}%${DHPath}%" "${configPath}/${file_mozmodern}" | ||||
| sed -i -e "s%${tag_cachain}%${CAChainPath}%" "${configPath}/${file_mozmodern}" | ||||
| # process mozModern SSL configuration if using SSL | ||||
| if [ "${useSSL}" -eq 1 ]; then | ||||
|     echo -e "updating ${warn}${configPath}/${file_mozmodern}${norm}" | ||||
|     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 | ||||
| echo -e "updating ${warn}${configPath}/${file_lanip}${norm}" | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user