hylafax (2:6.0.5-4.1) 652_faxsetup_faxmaster.patch

Summary

 etc/faxsetup.sh.in |   45 +--------------------------------------------
 1 file changed, 1 insertion(+), 44 deletions(-)

    
download this patch

Patch contents

Author: 
Description: Patch that remove the faxmaster alias since we already have a 
user FaxMaster.
Index: hylafax-6.0.5/etc/faxsetup.sh.in
===================================================================
--- hylafax-6.0.5.orig/etc/faxsetup.sh.in	2010-09-16 09:21:48.686570470 +0200
+++ hylafax-6.0.5/etc/faxsetup.sh.in	2010-09-16 09:21:53.750571336 +0200
@@ -1938,50 +1938,7 @@
     fi
 fi
 
-#
-# Check for a FaxMaster entry for sending mail.
-#
-if onServer; then
-    x=`(ypcat -k aliases) 2>/dev/null | $GREP -i '^faxmaster'` 2>/dev/null
-    if [ -z "$x" ] && [ -f $ALIASES ]; then
-	x=`$GREP -i '^faxmaster' $ALIASES`
-    fi
-    if [ -z "$x" ]; then
-	cat<<-EOF
-
-
-	There does not appear to be an entry for the FaxMaster either in
-	the YP/NIS database or in the $ALIASES file.  The
-	FaxMaster is the primary point of contact for HylaFAX problems. 
-	The HylaFAX client-server protocol server identifies this alias as
-	the place to register complaints and HylaFAX directs automatic mail
-	messages to this user when problems are identified on a server
-	machine or when the routine server maintainence scripts are run
-	(e.g. faxcron).
-
-	EOF
-	prompt "Should an entry be added for the FaxMaster to $ALIASES [yes]?"
-	read x
-	if isOK $x; then
-	    promptForNonNullStringParameter "${USER:-root}" \
-	       "Users to receive fax-related mail"
-	    (echo "# alias for notification messages from HylaFAX servers";
-	     echo "FaxMaster: $param") >>$ALIASES
-	    if newaliases 2>/dev/null; then
-		echo "Rebuilt $ALIASES database."
-	    else
-		# could be a SCO machine running mmdf
-		if test -x /usr/mmdf/table/dbmbuild ; then
-		    su mmdf -c "/usr/mmdf/table/dbmbuild"
-		else
-		    echo "Can not find newaliases to rebuild $ALIASES;"
-		    echo "you will have to do it yourself."
-		fi
-	    fi
-	fi
-    fi
-    FAXMASTER=$x
-fi
+FAXMASTER=faxmaster
 
 #
 # Generate or update default values for status/any.info