test
This commit is contained in:
parent
a11459cf5c
commit
076d9d2dcc
1 changed files with 0 additions and 3 deletions
|
@ -27,9 +27,6 @@ if [[ $mounted1 != 0 ]] || [[ $mounted2 != 0 ]] || [[ $mounted3 != 0 ]] ; then
|
|||
fi
|
||||
|
||||
# If an old backup is still running, don't continue
|
||||
|
||||
echo "Checking run"
|
||||
ps aux | grep $BACKUP_NAME | grep -v grep
|
||||
if [[ `ps aux | grep $BACKUP_NAME | grep -v grep` ]] ; then
|
||||
echo -e "$BACKUP_NAME rsync still running. Exiting...."
|
||||
payload="{\"message\": \"$BACKUP_NAME stopped. $BACKUP_NAME is still running.\nDate: `date`\", \"priority\": 2,\"title\": \"japan-rpi4: $BACKUP_NAME Backup Stopped\"}"
|
||||
|
|
Loading…
Reference in a new issue