add update script
This commit is contained in:
15
src/dist/bin/update-db
vendored
Normal file
15
src/dist/bin/update-db
vendored
Normal 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
6
src/dist/bin/update-db.bat
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
call "%~dp0\starter.bat" patch updates
|
||||||
|
if ERRORLEVEL == 1 goto :EOF
|
||||||
|
|
||||||
|
call "%~dp0\starter.bat" update
|
Reference in New Issue
Block a user