mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 10:41:32 +00:00
The script `install.sh` largely copies the template from the hosted-app-utils
project, with some key changes:
1. replace template parameters (`{{VAR}}`) with hard-coded values
2. define variables for org, app, install root, etc
3. if old version detected, remove data folder before installing update
The modified script will:
1. delete v1 data
2. update normally when v2 or newer installations are present
11 lines
346 B
Bash
Executable File
11 lines
346 B
Bash
Executable File
#!/bin/bash
|
|
|
|
LOCATION="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
CONFIG=${CONFIG:-${LOCATION}/config.json}
|
|
SRC=${SRC:-${LOCATION}/src}
|
|
BUILD_DIR=${BUILD_DIR:-${LOCATION}/build-packages}
|
|
INSTALL_SCRIPT=${LOCATION}/install.sh
|
|
|
|
${LOCATION}/hosted-app-utils/package ${CONFIG} ${SRC} ${INSTALL_SCRIPT} output=${BUILD_DIR} $@
|