[Lunar-commits] CVS: theedge/var/lib/lunar/functions postbuild.lunar, 1.12, 1.13

Auke Kok sofar at lunar-linux.org
Fri Jun 4 12:21:54 GMT 2004


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv15678

Modified Files:
	postbuild.lunar 
Log Message:
Same permissions but changed code so it's actually not rediculous


Index: postbuild.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/postbuild.lunar,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- postbuild.lunar	29 Mar 2004 21:14:31 -0000	1.12
+++ postbuild.lunar	4 Jun 2004 12:21:51 -0000	1.13
@@ -53,16 +53,17 @@
 
 install_pam_confs()  {
   debug_msg "install_pam_confs ($@)"
-  if  [  -d  "$SCRIPT_DIRECTORY/pam.d"  ];  then
+  if [ -d "$SCRIPT_DIRECTORY/pam.d" ] ; then
     verbose_msg "handling pam config files"
-    cd       "$SCRIPT_DIRECTORY/pam.d"
+    cd "$SCRIPT_DIRECTORY/pam.d"
 
-    [ -d /etc/pam.d ] || mkdir  -p  /etc/pam.d
+    if [ ! -d /etc/pam.d ] ; then
+		  mkdir -p /etc/pam.d
+		fi
 
-    for  FILE  in  [!CVS]* ;  do
-      if  !  [  -f  /etc/pam.d/$FILE  ];  then
-        /usr/bin/install -g 0 -o 0 -m 600 $FILE /etc/pam.d
-        cp  $FILE   /etc/pam.d
+    for FILE in [!CVS]* ; do
+      if [ ! -f /etc/pam.d/$FILE ] ; then
+        /usr/bin/install -g 0 -o 0 -m 0600 $FILE /etc/pam.d
       fi
     done
   fi



More information about the Lunar-commits mailing list