Browse Source

exit migration if demod.py exists (i.e. migration done before)

tags/v1.7
Nico Rey 3 years ago
parent
commit
ab8107931e
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      migrations/20201292-iss.sh

+ 5
- 0
migrations/20201292-iss.sh View File

@@ -11,6 +11,11 @@ fi
. "$HOME/.noaa.conf"
. "$NOAA_HOME/common.sh"

if [ -f "$NOAA_HOME/demod.py" ]; then
log "Seems like you already have run this migration before" "ERROR"
exit 1
fi

if [ ! -f "$NOAA_HOME/panel.db" ]; then
log "Seems like there's no panel.db database in your project folder" "ERROR"
exit 1


Loading…
Cancel
Save