gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/cronjobs/cvs-cron usergroup.php,1.7,1.8


From: tperdue
Subject: [Gforge-commits] gforge/cronjobs/cvs-cron usergroup.php,1.7,1.8
Date: Wed, 07 Jan 2004 22:45:43 -0600

Update of /cvsroot/gforge/gforge/cronjobs/cvs-cron
In directory db.perdue.net:/home/tperdue/share/www.gforge.org/cronjobs/cvs-cron

Modified Files:
        usergroup.php 
Log Message:
file missing check fixed

Index: usergroup.php
===================================================================
RCS file: /cvsroot/gforge/gforge/cronjobs/cvs-cron/usergroup.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- usergroup.php       1 Dec 2003 04:03:41 -0000       1.7
+++ usergroup.php       8 Jan 2004 04:45:40 -0000       1.8
@@ -14,8 +14,18 @@
 define('FILE_EXTENSION','.new'); // use .new when testing
 define('CVS_ROOT','/cvsroot/');
 
-if (!file_exists('/etc/passwd.org') || !file_exists('/etc/shadow.org') || 
file_exists('/etc/group.org')) {
-       $err .= "CANNOT PROCEED - You must first copy/backup your /etc/shadow, 
/etc/group, and /etc/passwd files";
+if (!file_exists('/etc/passwd.org')) {
+       echo "passwd.org missing";
+       exit;
+}
+
+if (!file_exists('/etc/shadow.org')) {
+       echo "shadow.org missing";
+       exit;
+}
+
+if (!file_exists('/etc/group.org')) {
+       echo "group.org missing";
        exit;
 }
 
@@ -109,7 +119,7 @@
 
     if ($def_shadow[$users[$i]]) {
 
-        //this username was already existing in the "default" file
+       //this username was already existing in the "default" file
 
     } else {
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]