FTP upload hook bugfix for files with commas in their names (CURL

restriction)
This commit is contained in:
Albert Santoni 2014-07-10 16:43:13 -04:00
parent 08f4610aec
commit bbade8401c
1 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,12 @@ post_file() {
max_retry=360
retry_count=0
file_path=${1}
file_path="${1}"
#We must remove commas because CURL can't upload files with commas in the name
# http://curl.haxx.se/mail/archive-2009-07/0029.html
stripped_file_path=${file_path//','/''}
mv "${file_path}" "${stripped_file_path}"
file_path="${stripped_file_path}"
filename="${file_path##*/}"
#base_instance_path and airtime_conf_path are common to all saas instances