mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 18:17:29 -05:00
fb25985b91
This is a bit weird with the Rakefiles but makes it consistent. Found with rpmlint.
10 lines
No EOL
225 B
Bash
Executable file
10 lines
No EOL
225 B
Bash
Executable file
#!/bin/bash
|
|
FILE=/tmp/kill_db_done
|
|
|
|
if [ -f $FILE ]
|
|
then
|
|
echo "File $FILE exists..."
|
|
else
|
|
ps xa | grep postgres: | grep $POSTGRESQL_DATABASE | grep -v grep | awk '{print $1}' | sudo xargs kill
|
|
touch /tmp/kill_db_done
|
|
fi |