[pve-devel] r6187 - pve-installer/pve2

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Jun 28 06:33:42 CEST 2011


Author: dietmar
Date: 2011-06-28 06:33:41 +0200 (Tue, 28 Jun 2011)
New Revision: 6187

Modified:
   pve-installer/pve2/proxinstall
Log:
set FQDN


Modified: pve-installer/pve2/proxinstall
===================================================================
--- pve-installer/pve2/proxinstall	2011-06-27 11:54:16 UTC (rev 6186)
+++ pve-installer/pve2/proxinstall	2011-06-28 04:33:41 UTC (rev 6187)
@@ -52,6 +52,8 @@
 my $postfix_main_cf = <<_EOD;
 # See /usr/share/postfix/main.cf.dist for a commented, more complete version
 
+myhostname=__FQDN__
+
 smtpd_banner = \$myhostname ESMTP \$mail_name (Debian/GNU)
 biff = no
 
@@ -814,6 +816,7 @@
 _EOD
 
 	unlink "$targetdir/etc/mailname";
+	$postfix_main_cf =~ s/__FQDN__/${hostname}.${domain}/;
 	write_config ($postfix_main_cf, "$targetdir/etc/postfix/main.cf");
 
 	# make sure we have all postfix directories



More information about the pve-devel mailing list