From 2ec8606243c9e39ba37b00139f864acd28a161c0 Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Mon, 17 Dec 2012 13:30:30 -0500 Subject: [PATCH] updating version info; correcting postfix configuration --- GenaSYS.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/GenaSYS.sh b/GenaSYS.sh index fc25f26..3252403 100755 --- a/GenaSYS.sh +++ b/GenaSYS.sh @@ -25,8 +25,8 @@ PURPOSE_="Generate config files needed for Evergreen-ILS Cluster" SYNOPSIS_="$NAME_" REQUIRES_="standard GNU commands, apt, dpkg" - VERSION_="0.97" - DATE_="2010-09-18; last update: 2012-12-13" + VERSION_="0.98" + DATE_="2010-09-18; last update: 2012-12-17" AUTHOR_="Andy Witter " URL_="http://evergreen-ils.org" CATEGORY_="devel" @@ -1041,8 +1041,9 @@ for LVS in $MACHINES_LVS_ONLY cp -f "$TEMPLATEDIR/lvs/main.cf" "$OUTDIR/$LVS/etc/postfix" sed -i "s^CLUSTER_DOMAIN_NAME^$CLUSTERDOMAINNAME^g" "$OUTDIR/$LVS/etc/resolv.conf" if [ -n "$HOSTNAME_PREFIX" ]; then - sed -i "s^\(myhostname = \)\([A-Za-z0-9-]*\.ClusterDomainName\)^\1$HOSTNAME_PREFIX-\2^g" "$OUTDIR/$LVS/etc/postfix/main.cf" - sed -i "s^\(mydestination = \)\([A-Za-z0-9-]*\.ClusterDomainName\)^\1$HOSTNAME_PREFIX-\2^g" "$OUTDIR/$LVS/etc/postfix/main.cf" + #sed -i "s^\(myhostname = \)\([A-Za-z0-9-]*\.ClusterDomainName\)^\1$HOSTNAME_PREFIX-\2^g" "$OUTDIR/$LVS/etc/postfix/main.cf" + #sed -i "s^\(mydestination = \)\([A-Za-z0-9-]*\.ClusterDomainName\)^\1$HOSTNAME_PREFIX-\2^g" "$OUTDIR/$LVS/etc/postfix/main.cf" + sed -i "s^HostName^$LVS^g" "$OUTDIR/$LVS/etc/postfix/main.cf" fi sed -i "s^ClusterDomainName^$CLUSTERDOMAINNAME^g" "$OUTDIR/$LVS/etc/postfix/main.cf" sed -i "s^Priv_NET^${PRIVATENET}^g" "$OUTDIR/$LVS/etc/network/iptables-rules.fw" -- 2.11.0