Small fix to ftp hook script.

Removed space that was getting added to the api key
This commit is contained in:
drigato 2014-04-16 10:54:55 -04:00
parent 53ffa29b6b
commit 7aba416c3b
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ post_file() {
#path to specific instance's airtime.conf #path to specific instance's airtime.conf
instance_conf_path=$base_instance_path$instance_path$airtime_conf_path 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}" until curl --max-time 30 $url -u $api_key":" -X POST -F "file=@${file_path}" -F "name=${filename}"
do do