Ticket #6258: index_regen.patch
File index_regen.patch, 782 bytes (added by danielluke (Daniel J. Luke), 19 years ago) |
---|
-
IndexRegen.sh
old new 9 9 #### 10 10 11 11 # Configuration 12 LOCKFILE=/tmp/.dp_index_regen.lock 12 13 # ROOT directory, where everything is. This must exist. 13 14 ROOT=/Users/pguyot/dp-portindex 14 15 # SSH key. This must exist. … … 47 48 # The date. 48 49 DATE=$(date +'%A %Y-%m-%d at %H:%M:%S') 49 50 51 if [ ! -e $LOCKFILE ]; then 52 touch $LOCKFILE 53 else 54 echo "Index Regen lockfile found, is another index regen running?" 55 exit 1 56 fi 57 50 58 # Create the SSH wrapper if it doesn't exist (comment this for -d /Volumes...) 51 59 if [ ! -e $SSH_KEY ]; then 52 60 echo "Key doesn't exist. The script is configured to find the SSH key at:" … … 140 148 rm -f $COMMIT_MSG $FAILURE_LOG 141 149 fi 142 150 151 rm -f $LOCKFILE