Commit 7e01ccf1 authored by Julien Penguen's avatar Julien Penguen

correction ecriture sur volume monte

parent 2e544eaa
...@@ -1209,7 +1209,7 @@ case ${sort_arg_keys[0]} in ...@@ -1209,7 +1209,7 @@ case ${sort_arg_keys[0]} in
#check OUTPUT_FOLDER_ON_VOLUME_MOUNT #check OUTPUT_FOLDER_ON_VOLUME_MOUNT
if [ $OUTPUT_FOLDER_ON_VOLUME_MOUNT == "TRUE" ]; then if [ $OUTPUT_FOLDER_ON_VOLUME_MOUNT == "TRUE" ]; then
container_mount="/mnt/" container_mount="/mnt"
new_main_folder=${container_mount}${OUTPUT_FOLDER_MACOS}"/datas_photos_montage_aladin" new_main_folder=${container_mount}${OUTPUT_FOLDER_MACOS}"/datas_photos_montage_aladin"
else else
container_mount="" container_mount=""
...@@ -1226,6 +1226,13 @@ case ${sort_arg_keys[0]} in ...@@ -1226,6 +1226,13 @@ case ${sort_arg_keys[0]} in
log_aladin_file[$k]=${area_folder[$k]}"/"${list_zone[$k]}".log" log_aladin_file[$k]=${area_folder[$k]}"/"${list_zone[$k]}".log"
infos_file[$k]=${area_folder[$k]}"/infos_"${list_zone[$k]}".txt" infos_file[$k]=${area_folder[$k]}"/infos_"${list_zone[$k]}".txt"
new_area_folder[$k]=${new_main_folder}"/"${list_zone[$k]}
new_tempo_folder[$k]=${new_area_folder[$k]}
new_images_folder[$k]=${new_area_folder[$k]}"/images"
new_montages_folder[$k]=${new_area_folder[$k]}"/montages"
new_area_ajs[$k]=${new_tempo_folder[$k]}"/area_"${list_zone[$k]}".ajs"
#------------------------# #------------------------#
if [ -d ${area_folder[$k]} ]; then if [ -d ${area_folder[$k]} ]; then
if [ $force == 'TRUE' ]; then if [ $force == 'TRUE' ]; then
...@@ -1259,7 +1266,7 @@ case ${sort_arg_keys[0]} in ...@@ -1259,7 +1266,7 @@ case ${sort_arg_keys[0]} in
else else
echo -e "=> ${RED}WARNING${COLOR_OFF} : ${area_ajs[$k]} not found" echo -e "=> ${RED}WARNING${COLOR_OFF} : ${area_ajs[$k]} not found"
echo "=> construction of ${area_ajs[$k]} in progress ..." echo "=> construction of ${area_ajs[$k]} in progress ..."
function_create_ajs_file ${INPUT_FILE_SURVEYS} ${area_ajs[$k]} ${list_zone[$k]} ${list_ra[k]} ${list_dec[k]} ${container_mount}${images_folder[$k]} function_create_ajs_file ${INPUT_FILE_SURVEYS} ${area_ajs[$k]} ${list_zone[$k]} ${list_ra[k]} ${list_dec[k]} ${new_images_folder[$k]}
echo "=> construction of ${area_ajs[$k]} OK" echo "=> construction of ${area_ajs[$k]} OK"
rm -rf ${images_folder[$k]} rm -rf ${images_folder[$k]}
rm -rf ${montages_folder[$k]} rm -rf ${montages_folder[$k]}
...@@ -1321,7 +1328,7 @@ case ${sort_arg_keys[0]} in ...@@ -1321,7 +1328,7 @@ case ${sort_arg_keys[0]} in
rm ${log_aladin_file[$k]} rm ${log_aladin_file[$k]}
echo "=> construction of ${area_ajs[$k]} in progress ..." echo "=> construction of ${area_ajs[$k]} in progress ..."
function_create_ajs_file ${INPUT_FILE_SURVEYS} ${area_ajs[$k]} ${list_zone[$k]} ${list_ra[k]} ${list_dec[k]} ${container_mount}${images_folder[$k]} function_create_ajs_file ${INPUT_FILE_SURVEYS} ${area_ajs[$k]} ${list_zone[$k]} ${list_ra[k]} ${list_dec[k]} ${new_images_folder[$k]}
echo "=> construction of ${area_ajs[$k]} OK" echo "=> construction of ${area_ajs[$k]} OK"
state="RUN" state="RUN"
...@@ -1348,11 +1355,6 @@ case ${sort_arg_keys[0]} in ...@@ -1348,11 +1355,6 @@ case ${sort_arg_keys[0]} in
#construction of docker script and montage #construction of docker script and montage
echo "=> Construction in progress ..." echo "=> Construction in progress ..."
new_area_folder[$k]=${new_main_folder}"/"${list_zone[$k]}
new_tempo_folder[$k]=${new_area_folder[$k]}
new_images_folder[$k]=${new_area_folder[$k]}"/images"
new_montages_folder[$k]=${new_area_folder[$k]}"/montages"
new_area_ajs[$k]=${new_tempo_folder[$k]}"/area_"${list_zone[$k]}".ajs"
#------------------------# #------------------------#
script_images[$k]="macro "${new_area_ajs[$k]} script_images[$k]="macro "${new_area_ajs[$k]}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment