Conditionally enable / disable system import / export

This commit is contained in:
D. Berge
2020-09-02 15:03:17 +02:00
parent a8830c9a05
commit f708410e47

View File

@@ -95,8 +95,15 @@ run $BINDIR/import_final_p111.py
print_log "Import final P1/90" print_log "Import final P1/90"
run $BINDIR/import_final_p190.py run $BINDIR/import_final_p190.py
if [[ -z "$RUNNER_NOEXPORT" ]]; then
print_log "Export system data" print_log "Export system data"
run $BINDIR/system_exports.py run $BINDIR/system_exports.py
fi
if [[ -n "$RUNNER_IMPORT" ]]; then
print_log "Import system data"
run $BINDIR/system_imports.py
fi
rm "$LOCKFILE" rm "$LOCKFILE"