Remove any old lock files
This commit is contained in:
parent
d8bd3eeeff
commit
13faa6707f
|
@ -78,7 +78,11 @@ function create_pleroma_blocklist {
|
|||
echo ' exit 0' >> $blocking_script_file
|
||||
echo 'fi' >> $blocking_script_file
|
||||
echo 'if [ -f /tmp/pleroma-blocking.lock ]; then' >> $blocking_script_file
|
||||
echo ' exit 0' >> $blocking_script_file
|
||||
echo ' cd /tmp' >> $blocking_script_file
|
||||
echo ' find ./pleroma*.lock -type f -mmin +5 -exec rm {} \;' >> $blocking_script_file
|
||||
echo ' if [ -f /tmp/pleroma-blocking.lock ]; then' >> $blocking_script_file
|
||||
echo ' exit 0' >> $blocking_script_file
|
||||
echo ' fi' >> $blocking_script_file
|
||||
echo 'fi' >> $blocking_script_file
|
||||
echo 'touch /tmp/pleroma-blocking.lock' >> $blocking_script_file
|
||||
echo 'cd /etc/postgresql' >> $blocking_script_file
|
||||
|
|
Loading…
Reference in New Issue