Updating alternc.install to check the ssl cert file
This commit is contained in:
		
							parent
							
								
									7607486028
								
							
						
					
					
						commit
						1f9b9c6276
					
				|  | @ -356,7 +356,24 @@ else | ||||||
|     postfix_conf=/etc/alternc/postfix/postfix.cf |     postfix_conf=/etc/alternc/postfix/postfix.cf | ||||||
| fi | fi | ||||||
| grep -v '^\ *#' $postfix_conf |while read line ; do | grep -v '^\ *#' $postfix_conf |while read line ; do | ||||||
|  |    if echo "$line" | grep -qi '^smtpd_tls_cert_file' ;then | ||||||
|  |      line_strip=`echo "$line"|tr -d '[:blank:]'` | ||||||
|  |      pattern="*=" | ||||||
|  |      cert_file=${line_strip#$pattern} | ||||||
|  |      if [ -e $cert_file ];then | ||||||
|         postconf -e "$line" |         postconf -e "$line" | ||||||
|  |      else | ||||||
|  |         echo "****************************************" | ||||||
|  |         echo "The certificate file : $cert_file does not exists" | ||||||
|  |         echo "please go to https://alternc.org/wiki/SSL to get information on how to create a certificate" | ||||||
|  |         echo "Then edit the file /etc/alternc/postfix/postfix.cf to add" | ||||||
|  |         echo "the cert file path name to the key :smtpd_tls_cert_file" | ||||||
|  |         echo "Finally relaunch alternc.install" | ||||||
|  |         echo "****************************************" | ||||||
|  |      fi | ||||||
|  |   else | ||||||
|  |         postconf -e "$line" | ||||||
|  |   fi | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
| # Conviguring delivery used by Postfix | # Conviguring delivery used by Postfix | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Steven Mondji-Lerider
						Steven Mondji-Lerider