Skip to content

Commit

Permalink
run dbtool once .war is deflated
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenn committed Apr 22, 2022
1 parent 79b2d1e commit 861f24f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export TAG
#sudo -u ctsms /ctsms/dbtool.sh -sn
chmod +rwx /ctsms/install/init_database.sh
/ctsms/install/init_database.sh
/ctsms/clearcache.sh

###setup cron
chmod +rwx /ctsms/install/install_cron.sh
Expand Down
9 changes: 5 additions & 4 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ rm /var/lib/tomcat9/webapps/ROOT/ -rf
cp /ctsms/build/ctsms/web/target/ctsms-$VERSION.war /var/lib/tomcat9/webapps/ROOT.war
systemctl start tomcat9

###update permissions and criterions
sudo -u ctsms /ctsms/dbtool.sh -icp /ctsms/master_data/criterion_property_definitions.csv
sudo -u ctsms /ctsms/dbtool.sh -ipd /ctsms/master_data/permission_definitions.csv

###update bulk-processor
wget --no-check-certificate --content-disposition https://github.com/phoenixctms/bulk-processor/archive/$TAG.tar.gz -O /ctsms/bulk-processor.tar.gz
tar -zxvf /ctsms/bulk-processor.tar.gz -C /ctsms/bulk_processor --strip-components 1
Expand All @@ -103,6 +99,11 @@ wget https://raw.githubusercontent.com/phoenixctms/install-debian/$TAG/inquiryda
chown ctsms:ctsms /ctsms/inquirydataexport.sh
chmod 755 /ctsms/inquirydataexport.sh

###update permissions and criterions
sudo -u ctsms /ctsms/dbtool.sh -icp /ctsms/master_data/criterion_property_definitions.csv
sudo -u ctsms /ctsms/dbtool.sh -ipd /ctsms/master_data/permission_definitions.csv
/ctsms/clearcache.sh

###render workflow state diagram images from db and include them for tooltips
cd /ctsms/bulk_processor/CTSMS/BulkProcessor/Projects/Render
./render.sh
Expand Down

0 comments on commit 861f24f

Please sign in to comment.