Ver código fonte

add missing rm's

tags/1.5
Nico Rey 4 anos atrás
pai
commit
698a85dd9d
2 arquivos alterados com 3 adições e 5 exclusões
  1. +0
    -5
      common.sh
  2. +3
    -0
      receive.sh

+ 0
- 5
common.sh Ver arquivo

@@ -35,11 +35,6 @@ if [ ! -d "${NOAA_OUTPUT}/audio/" ]; then
mkdir -m 775 -p "${NOAA_OUTPUT}/audio/"
fi


if [ ! -d "${METEOR_OUTPUT}" ]; then
mkdir -m 775 -p "${METEOR_OUTPUT}"
fi

if [ ! -d "${METEOR_OUTPUT}/audio/" ]; then
mkdir -m 775 -p "${METEOR_OUTPUT}/audio/"
fi


+ 3
- 0
receive.sh Ver arquivo

@@ -44,6 +44,9 @@ for i in $ENHANCEMENTS; do
/usr/bin/convert -quality 90 -format jpg "${NOAA_OUTPUT}/images/${3}-$i.jpg" -undercolor black -fill yellow -pointsize 18 -annotate +20+20 "${1} $i ${START_DATE}Elev: $7°" "${NOAA_OUTPUT}/images/${3}-$i.jpg"
/usr/bin/convert -thumbnail 300 "${NOAA_OUTPUT}/images/${3}-$i.jpg" "${NOAA_OUTPUT}/images/thumb/${3}-$i.jpg"
done

rm "${NOAA_HOME}/map/${3}-map.png"

if [ "${SUN_ELEV}" -gt "${SUN_MIN_ELEV}" ]; then
sqlite3 /home/pi/raspberry-noaa/panel.db "insert into decoded_passes (pass_start, file_path, daylight_pass, is_noaa) values ($5,\"$3\", 1,1);"
else


Carregando…
Cancelar
Salvar