From 7aba416c3b47b1fbbf899bcd342f8501a3fc149a Mon Sep 17 00:00:00 2001
From: drigato <denise.rigato@sourcefabric.org>
Date: Wed, 16 Apr 2014 10:54:55 -0400
Subject: [PATCH] Small fix to ftp hook script. Removed space that was getting
 added to the api key

---
 python_apps/airtime_analyzer/tools/ftp-upload-hook.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python_apps/airtime_analyzer/tools/ftp-upload-hook.sh b/python_apps/airtime_analyzer/tools/ftp-upload-hook.sh
index faf677a29..e456d8be9 100755
--- a/python_apps/airtime_analyzer/tools/ftp-upload-hook.sh
+++ b/python_apps/airtime_analyzer/tools/ftp-upload-hook.sh
@@ -26,7 +26,7 @@ post_file() {
     #path to specific instance's airtime.conf
     instance_conf_path=$base_instance_path$instance_path$airtime_conf_path
 	
-    api_key=$(sudo awk -F "=" '/api_key/ {print $2}' $instance_conf_path)
+    api_key=$(awk -F "= " '/api_key/ {print $2}' $instance_conf_path)
 
     until curl --max-time 30 $url -u $api_key":" -X POST -F "file=@${file_path}" -F "name=${filename}"
     do