mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
update version to 2.1 and add reset condition for v2.0
v2.0 was built using a demo database that should not have been present. v2.1 uses the same application, but should start with a clean database. This change bumps the version to 2.1 and resets the database if the currently installed version is 1.* or 2.0.
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "streamline-emr",
|
"name": "streamline-emr",
|
||||||
"org": "streamline",
|
"org": "streamline",
|
||||||
"version": "2.0",
|
"version": "2.1",
|
||||||
"platforms": [
|
"platforms": [
|
||||||
"linux/arm64"
|
"linux/arm64"
|
||||||
],
|
],
|
||||||
|
|||||||
+3
-3
@@ -36,9 +36,9 @@ if [ -f ${INSTALL_ROOT}/stop ]; then
|
|||||||
${INSTALL_ROOT}/stop
|
${INSTALL_ROOT}/stop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# reset data for any v1 installations
|
# reset data for any v1 or v2.0 installations
|
||||||
if grep -q "^1." ${VERSION_FILE}; then
|
if grep -q "^1." ${VERSION_FILE} || grep -q "^2.0" ${VERSION_FILE}; then
|
||||||
echo "v1 installation detected - resetting data"
|
echo "demo installation detected (v$(cat ${VERSION_FILE})) - resetting data"
|
||||||
rm -rf ${DATA_ROOT}
|
rm -rf ${DATA_ROOT}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user