diff --git a/G1BILLETS.sh b/G1BILLETS.sh index 2330af2..6a02ba4 100755 --- a/G1BILLETS.sh +++ b/G1BILLETS.sh @@ -158,8 +158,8 @@ else else HNAME="http://$(hostname -I | awk '{print $1}' | head -n 1)" fi - [[ $isBOX ]] && HNAME="http://$isBOX" RNAME="$HNAME:33102" + [[ $isBOX ]] && RNAME="$isBOX" ## AVAILABLE STYLES : CREATING SELECT sytle=($(find ${MY_PATH}/${IMAGES}/* -type d | sort | rev | cut -d '/' -f 1 | rev)) @@ -383,6 +383,9 @@ Content-Disposition: attachment; filename='${FILE_NAME}' fi + ## EMPTY YESTERDAY TMP FILES + find ${MY_PATH}/tmp -mtime +1 -exec rm -Rf '{}' \; + done ##################################################################### ## loop ###############################################################TITLE="${file%.*}"