moved persistence
All checks were successful
Build (and tag) Images / build (push) Successful in 37s

This commit is contained in:
aso 2025-10-19 18:44:52 +02:00
commit 4c28ff9b0a
3 changed files with 7 additions and 7 deletions

View file

@ -50,21 +50,21 @@ curSeqNum=$lastSeqNum
curSeqNum=$(( $curSeqNum + 1 ))
while [ $curSeqNum -lt $newSeqNum ]
do
if [ -e "${curSeqNum}_filtered.osc" ]
if [ -e /migrations/"${curSeqNum}_filtered.osc" ]
then
rm "change_file.osc"
cp ${curSeqNum}_filtered.osc change_file.osc
cp /migrations/${curSeqNum}_filtered.osc change_file.osc
php create_camera_update_statements.php $curSeqNum
rm ${curSeqNum}_filtered.osc
rm /migrations/${curSeqNum}_filtered.osc
curSeqNum=$(( $curSeqNum + 1 ))
else
path=$(echo "$(printf "%09d" "$curSeqNum")" | sed -E "s#(...)(...)(...)#\1/\2/\3#")
url="${REPLICATE_URL}/${path}.osc.gz"
echo $url
curl -sL "$url" -o "$curSeqNum.osc.gz" && gunzip "$curSeqNum.osc.gz" && python filter_osc.py ${curSeqNum} && rm ${curSeqNum}.osc
curl -sL "$url" -o /migrations/"$curSeqNum.osc.gz" && gunzip /migrations/"$curSeqNum.osc.gz" && python filter_osc.py ${curSeqNum} && rm /migrations/${curSeqNum}.osc
fi
done