From 8d8690ef0878af077732927e3f98352837de500c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 3 Jul 2016 17:28:12 +0100 Subject: [PATCH] Obtain go version from utils script --- src/freedombone-backup-remote | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-backup-remote b/src/freedombone-backup-remote index 58759dca..50e392e7 100755 --- a/src/freedombone-backup-remote +++ b/src/freedombone-backup-remote @@ -42,9 +42,9 @@ SERVER_DIRECTORY=/root/remotebackup # get the version of Go being used if [ -f /usr/local/bin/${PROJECT_NAME} ]; then - GO_VERSION=$(cat /usr/local/bin/${PROJECT_NAME} | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}') + GO_VERSION=$(cat /usr/local/bin/${PROJECT_NAME}-utils-go | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}') else - GO_VERSION=$(cat /usr/bin/${PROJECT_NAME} | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}') + GO_VERSION=$(cat /usr/bin/${PROJECT_NAME}-utils-go | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}') fi ADMIN_USERNAME=$(cat $COMPLETION_FILE | grep "Admin user" | awk -F ':' '{print $2}')