Skip to content

Commit 0f5a038

Browse files
committed
Make lockdir and pid file more accessible to others
- Legacy-Id: 450
1 parent 8896ddb commit 0f5a038

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/update-db

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@ PIDFILE=$LOCKDIR/pid
2727

2828
while true; do
2929
if mkdir $LOCKDIR; then
30+
chmod a+rwx $LOCKDIR
3031
#echo ""
3132
#date +"Time: %Y-%m-%d %H:%M"
3233
#echo "Database dump file is from $(date -r $DBDUMP +'%Y-%m-%d %H:%M')."
3334
#echo "Last update done $(date -r $DBDONE +'%Y-%m-%d %H:%M')."
3435
if [ $DBDUMP -nt $DBTIME ]; then
3536
echo "$$" > $PIDFILE
37+
chmod a+rw $PIDFILE
38+
3639
log "Updating local database from $DBDUMP ..."
3740
python ietf/manage.py dbshell < $DBDUMP
3841
log "Updating local database from $DBFIX ..."

0 commit comments

Comments
 (0)