Bläddra i källkod

Obtain go version from utils script

Bob Mottram 8 år sedan
förälder
incheckning
8d8690ef08
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      src/freedombone-backup-remote

+ 2
- 2
src/freedombone-backup-remote Visa fil

@@ -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}')