Browse Source

Obtain go version from utils script

Bob Mottram 8 years ago
parent
commit
8d8690ef08
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/freedombone-backup-remote

+ 2
- 2
src/freedombone-backup-remote View File

@@ -42,9 +42,9 @@ SERVER_DIRECTORY=/root/remotebackup
42 42
 
43 43
 # get the version of Go being used
44 44
 if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
45
-	GO_VERSION=$(cat /usr/local/bin/${PROJECT_NAME} | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}')
45
+	GO_VERSION=$(cat /usr/local/bin/${PROJECT_NAME}-utils-go | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}')
46 46
 else
47
-	GO_VERSION=$(cat /usr/bin/${PROJECT_NAME} | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}')
47
+	GO_VERSION=$(cat /usr/bin/${PROJECT_NAME}-utils-go | grep 'GO_VERSION=' | head -n 1 | awk -F '=' '{print $2}')
48 48
 fi
49 49
 
50 50
 ADMIN_USERNAME=$(cat $COMPLETION_FILE | grep "Admin user" | awk -F ':' '{print $2}')