3 Commits
Author SHA1 Message Date
alec.turner 6d26a3abcf reset data for 2.1 installations unless running on STRLTEST
A second condition is checked for when determining whether demo data must be
reset; if version '2.1' of the app is installed and the target is not node
STRLTEST, data will be reset. Note that the version must be exactly '2.1', not
'2.1*'. The updated version will be '2.1.1'

This commit is added to handle an issue with a previously deployed version where
the incorrect install script was included. Node STRLTEST was manually fixed and
new data added to the database, leading to the need for this exception.
2025-01-23 09:49:35 -08:00
alec.turner 733b01c244 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.
2025-01-22 08:09:49 -08:00
alec.turner 9f733bb6c9 add custom install script to clear v1 data
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
2025-01-15 09:13:49 -08:00