[Lunar-commits] r22247 - moonbase/trunk/filesys/openafs
Stefan Wold
ratler at lunar-linux.org
Tue Nov 21 11:55:07 CET 2006
Author: ratler
Date: 2006-11-21 11:55:06 +0100 (Tue, 21 Nov 2006)
New Revision: 22247
Modified:
moonbase/trunk/filesys/openafs/BUILD
Log:
Never overwrite an existing file in /etc
Modified: moonbase/trunk/filesys/openafs/BUILD
===================================================================
--- moonbase/trunk/filesys/openafs/BUILD 2006-11-21 09:47:45 UTC (rev 22246)
+++ moonbase/trunk/filesys/openafs/BUILD 2006-11-21 10:55:06 UTC (rev 22247)
@@ -53,7 +53,9 @@
# Copy conf and rc files
sedit "s;^OPTIONS=.*;OPTIONS=\"\$MEDIUM -nosettime\";" $SOURCE_DIRECTORY/src/afsd/afs.conf.linux &&
- install -p -m 644 $SOURCE_DIRECTORY/src/afsd/afs.conf.linux /etc/config.d/afs &&
+ if [ ! -f /etc/config.d/afs ]; then
+ install -p -m 644 $SOURCE_DIRECTORY/src/afsd/afs.conf.linux /etc/config.d/afs
+ fi &&
sedit "s;^SYSCNF=.*;SYSCNF=/etc/config.d/afs;" $SOURCE_DIRECTORY/src/afsd/afs.rc.linux &&
install -p -m 755 $SOURCE_DIRECTORY/src/afsd/afs.rc.linux /etc/init.d/afs
More information about the Lunar-commits
mailing list