Changes in trunk/dsys/funcINSTALL [3:1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dsys/funcINSTALL
r3 r1 91 91 DATABASE="${basedir}/${defdatabase}" 92 92 fi 93 94 updlock="${DATABASE}.lockdir"95 trap "rm -rf ${updlock}" 1 2 13 1596 97 #98 # A lockfile will not work, because 'root' can write anyway.99 # However, 'mkdir' an existing directory will fail even for root100 #101 until (umask 222; mkdir "${updlock}") 2>/dev/null # test & set102 do103 printINFO "Waiting for lock"104 sleep 1105 done106 107 93 108 94 IDATE=`date +"%Y-%m-%d %H:%M:%S"` … … 237 223 fi 238 224 239 chown ${rcfile_owner}:${rcfile_group} "${DATABASE}" 240 if [ $? -ne 0 ]; then 241 rm -rf "${instlock}" 242 printFATAL "Could not chown ${rcfile_owner}:${rcfile_group} ${DATABASE}" 243 fi 244 chmod ${rcfile_perm} "${DATABASE}" 245 if [ $? -ne 0 ]; then 246 rm -rf "${instlock}" 247 printFATAL "Could not chmod ${rcfile_perm} ${DATABASE}" 248 fi 249 250 rm -rf "${updlock}" 225 chown ${rcfile_owner}:${rcfile_group} "${DATABASE}" || printFATAL "Could not chown ${rcfile_owner}:${rcfile_group} ${DATABASE}" 226 chmod ${rcfile_perm} "${DATABASE}" || printFATAL "Could not chmod ${rcfile_perm} ${DATABASE}" 227 251 228 } 252 229
Note:
See TracChangeset
for help on using the changeset viewer.