[Lunar-commits] CVS: moonbase/mail/sendmail BUILD,1.7,1.8

Auke Kok sofar at lunar-linux.org
Fri Feb 27 09:27:33 GMT 2004


Update of /var/cvs/lunar/moonbase/mail/sendmail
In directory dbguin.lunar-linux.org:/tmp/cvs-serv27130

Modified Files:
	BUILD 
Log Message:
Adding code to allow failure with permissions and chowns, since the box might be part of a nfs/nis network with limited permissions.


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/mail/sendmail/BUILD,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- BUILD	7 Jan 2004 14:14:15 -0000	1.7
+++ BUILD	27 Feb 2004 09:27:31 -0000	1.8
@@ -30,15 +30,21 @@
   mkdir -p /var/spool/clientmqueue  &&
   
   # permissions, permissions, permissions!
-  chown -R root:mail /etc/mail  &&
-  chown mail:mail /var/spool/mail  &&
-  chown root:mail /var/spool/mqueue  &&
-  chown mail:mail /var/spool/clientmqueue  &&
+  (
+    chown -R root:mail /etc/mail  &&
+    chown mail:mail /var/spool/mail  &&
+    chown root:mail /var/spool/mqueue  &&
+    chown mail:mail /var/spool/clientmqueue  ||
+    message "${PROBLEM_COLOR}Warning${DEFAULT_COLOR}${MESSAGE_COLOR}: setting ownerships failed!${DEFAULT_COLOR}"
+  ) &&
  
-  chmod 0750 /etc/mail  &&
-  chmod 1777 /var/spool/mail  &&
-  chmod 0750 /var/spool/mqueue  &&
-  chmod 0770 /var/spool/clientmqueue  &&
+  (
+    chmod 0750 /etc/mail  &&
+    chmod 1777 /var/spool/mail  &&
+    chmod 0750 /var/spool/mqueue  &&
+    chmod 0770 /var/spool/clientmqueue  ||
+  message "${PROBLEM_COLOR}Warning${DEFAULT_COLOR}${MESSAGE_COLOR}: setting permissions failed!${DEFAULT_COLOR}"
+  ) && 
   
   # copy the m4 stuff over:
   mkdir -p /usr/share/sendmail  &&



More information about the Lunar-commits mailing list