cp -a $cfg_aliases $cfg_aliases_gforge
# Redirect "noreply" mail to the bit bucket (if need be)
- noreply_to_bitbucket=$(perl -e'require "/etc/gforge/local.pl"; print "$noreply_to_bitbucket\n";')
- if [ "$noreply_to_bitbucket" = "true" ] ; then
+ noreply_to_bitbucket=$(forge_get_config noreply_to_bitbucket)
+ if [ "$noreply_to_bitbucket" != "no" ] ; then
if ! grep -q "^noreply:" $cfg_aliases_gforge; then
echo "### Next line inserted by GForge install" >> $cfg_aliases_gforge
echo "noreply: :blackhole:" >> $cfg_aliases_gforge
fi
# Redirect "gforge" mail to the site admin
- server_admin=$(perl -e'require "/etc/gforge/local.pl"; print "$server_admin\n";')
+ server_admin=$(forge_get_config admin_email)
if ! grep -q "^gforge:" $cfg_aliases_gforge; then
echo "### Next line inserted by GForge install" >> $cfg_aliases_gforge
echo "gforge: $server_admin" >> $cfg_aliases_gforge
cp -a $m $cfg_gforge_main
perl -e '
-require ("/etc/gforge/local.pl") ;
+require ("/usr/share/gforge/lib/include.pl") ;
$seen_gf_domains = 0;
while (($l = <>) !~ /^\s*domainlist\s*local_domains/) {
print $l;
chomp $l;
$l .= ":GFORGE_DOMAINS" unless ($l =~ /^[^#]*GFORGE_DOMAINS/);
print "$l\n" ;
-while (<>) { print; };
+while (<>) { print unless m/^hide pgsql_servers/; };
' < $cfg_gforge_main > $tmp1
cat $tmp1 > $cfg_gforge_main
# Second, insinuate our forwarding rules in the directors section
perl -e '
-require ("/etc/gforge/local.pl") ;
+require ("/usr/share/gforge/lib/include.pl") ;
my $gf_block = "# BEGIN GFORGE BLOCK -- DO NOT EDIT #
# You may move this block around to accomodate your local needs as long as you
grep -v "^gforge:" $cfg_aliases_gforge > $tmp1
# Redirect "noreply" mail to the bit bucket (if need be)
- noreply_to_bitbucket=$(perl -e'require "/etc/gforge/local.pl"; print "$noreply_to_bitbucket\n";')
- if [ "$noreply_to_bitbucket" = "true" ] ; then
+ noreply_to_bitbucket=$(forge_get_config noreply_to_bitbucket)
+ if [ "$noreply_to_bitbucket" != "no" ] ; then
grep -v "^noreply:" $tmp1 > $cfg_aliases_gforge
else
cat $tmp1 > $cfg_aliases_gforge