gunnar: server cvs-kolab.sh,1.10,1.11

cvs at kolab.org cvs at kolab.org
Sun Sep 16 07:59:29 CEST 2007


Author: gunnar

Update of /kolabrepository/server
In directory doto:/tmp/cvs-serv8375

Modified Files:
	cvs-kolab.sh 
Log Message:
Add a warning when running update without installing the environment first.

Index: cvs-kolab.sh
===================================================================
RCS file: /kolabrepository/server/cvs-kolab.sh,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- cvs-kolab.sh	13 Sep 2007 14:51:18 -0000	1.10
+++ cvs-kolab.sh	16 Sep 2007 05:59:27 -0000	1.11
@@ -122,6 +122,9 @@
 }
 
 update() {
+    if [ ! -e "/${KOLAB_DEV_USER}/CVS/server" ]; then
+	die "There exists no CVS environment at /${KOLAB_DEV_USER}/CVS/server! Did you run ./cvs-kolab.sh -i to setup the CVS based Kolab server?"
+    fi
     cd "/${KOLAB_DEV_USER}/CVS/server"
     cvs -q update -P -d
     chown -R "${KOLAB_DEV_USER}:" "/${KOLAB_DEV_USER}/CVS"





More information about the commits mailing list