add update script

This commit is contained in:
Kashtanov
2021-09-06 15:39:19 +03:00
parent b85f2079df
commit d7ad524f64
2 changed files with 21 additions and 0 deletions

15
src/dist/bin/update-db vendored Normal file
View File

@ -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

6
src/dist/bin/update-db.bat vendored Normal file
View File

@ -0,0 +1,6 @@
@echo off
call "%~dp0\starter.bat" patch updates
if ERRORLEVEL == 1 goto :EOF
call "%~dp0\starter.bat" update