[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][lockfile] Use LOCK_UNCHECKED variable name defined in common place



Title: GitLab

Joerg Jaspert pushed to branch lockfile at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • config/debian-security/cron.unchecked
    ... ... @@ -16,13 +16,12 @@ reportdis=$queuedir/REPORT.disembargo
    16 16
     timestamp=$(date "+%Y-%m-%d %H:%M")
    
    17 17
     doanything=false
    
    18 18
     dopolicy=false
    
    19
    -LOCKFILE="$lockdir/unchecked.lock"
    
    20 19
     
    
    21 20
     last_changed() {
    
    22 21
         psql -qAtc "SELECT MAX(last_changed) FROM suite WHERE archive_id=(SELECT id FROM archive WHERE name='$1')"
    
    23 22
     }
    
    24 23
     
    
    25
    -exec {LOCKFD}<>${LOCKFILE}
    
    24
    +exec {LOCKFD}<>${LOCK_UNCHECKED}
    
    26 25
     flock --exclusive --timeout 600 ${LOCKFD}
    
    27 26
     
    
    28 27
     old_last_changed=$(last_changed security)
    


  • Reply to: