From 19e2d98b9b9104854df6067b973b014dd881fdd9 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Fri, 6 Jul 2018 13:41:15 +0100
Subject: [PATCH] Full path for completion file

---
 src/freedombone-notification | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/freedombone-notification b/src/freedombone-notification
index ca9e0edfb..5d3690718 100755
--- a/src/freedombone-notification
+++ b/src/freedombone-notification
@@ -31,6 +31,7 @@ PROJECT_NAME='freedombone'
 ADMIN_USERNAME=
 SUBJECT=
 MESSAGE=
+COMPLETION_FILE=/root/${PROJECT_NAME}-completed.txt
 
 while [ $# -gt 1 ]
 do
@@ -64,10 +65,6 @@ if [ ! "$MESSAGE" ]; then
     exit 0
 fi
 
-if [ ! "$COMPLETION_FILE" ]; then
-    COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt
-fi
-
 if [ ! "$ADMIN_USERNAME" ]; then
     ADMIN_USERNAME=$(grep "Admin user" "$COMPLETION_FILE" | awk -F ':' '{print $2}')
 fi
-- 
GitLab