infra/codestorage/hg-repo-sync

Paddy 2015-11-12 Parent:cc08c8ed2128

4:32a993adf753 Go to Latest

infra/codestorage/hg-repo-sync/sleep.sh

Fix nested repository permissions. For repositories nested inside folders, fix the permissions on the folders so we can create other repositories inside them. Before, we only fixed the permissions on the repositories themselves; now we also fix the root directory that holds the repository.

History
1 #!/bin/bash
2 SLEEP=${SLEEP:-5}
3 sleepfor="$[($RANDOM % 5) + $SLEEP]m"
4 echo "Sleeping for $sleepfor..."
5 sleep $sleepfor