Bladeren bron

Obtain go version from utils script

Bob Mottram 8 jaren geleden
bovenliggende
commit
8d8690ef08
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      src/freedombone-backup-remote

+ 2
- 2
src/freedombone-backup-remote Bestand weergeven

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