From d7ad524f641e4830bfda3d6a7778892d42852e11 Mon Sep 17 00:00:00 2001 From: Kashtanov Date: Mon, 6 Sep 2021 15:39:19 +0300 Subject: [PATCH] add update script --- src/dist/bin/update-db | 15 +++++++++++++++ src/dist/bin/update-db.bat | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 src/dist/bin/update-db create mode 100644 src/dist/bin/update-db.bat diff --git a/src/dist/bin/update-db b/src/dist/bin/update-db new file mode 100644 index 0000000..7325c51 --- /dev/null +++ b/src/dist/bin/update-db @@ -0,0 +1,15 @@ +#!/bin/bash + +$(dirname $0)/starter patch updates + +if [ $? -ne 0 ] ; then + echo Error patch loading + exit 10 +fi + +$(dirname $0)/starter update + +if [ $? -ne 0 ] ; then + echo Error updating database + exit 11 +fi diff --git a/src/dist/bin/update-db.bat b/src/dist/bin/update-db.bat new file mode 100644 index 0000000..ae577b3 --- /dev/null +++ b/src/dist/bin/update-db.bat @@ -0,0 +1,6 @@ +@echo off + +call "%~dp0\starter.bat" patch updates +if ERRORLEVEL == 1 goto :EOF + +call "%~dp0\starter.bat" update \ No newline at end of file