Skip to content

Commit

Permalink
[upgrade] make sure we run upgrade both on combined and stand along s…
Browse files Browse the repository at this point in the history
…cripts
  • Loading branch information
ar2rsawseen committed Nov 5, 2020
1 parent 8c3a294 commit 9ac4254
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/upgrade/20.11/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ fi
if [ -f "$DIR/upgrade_db.sh" ]; then
bash "$DIR/upgrade_db.sh" combined 2>&1 | tee -a "$DIR/../../../log/countly-upgrade-db-$VERSION-$DATE.log"
fi
countly start
countly upgrade
4 changes: 4 additions & 0 deletions bin/upgrade/20.11/upgrade_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ then

#add indexes
nodejs "$DIR/scripts/add_indexes.js"

if [ "$1" != "combined" ]; then
countly upgrade;
fi

#call after check
countly check after upgrade db "$VER"
Expand Down
8 changes: 5 additions & 3 deletions bin/upgrade/20.11/upgrade_fs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ then
rm -rf "$DIR/../node_modules"

(cd "$DIR/.." && sudo npm install --unsafe-perm && sudo npm install argon2 --build-from-source)
countly restart


countly plugin upgrade star-rating
countly plugin upgrade users
Expand All @@ -93,7 +91,11 @@ then
countly update sdk-web

#install dependencies, process files and restart countly
countly task dist-all
if [ "$1" != "combined" ]; then
countly upgrade;
else
countly task dist-all;
fi

#call after check
countly check after upgrade fs "$VER"
Expand Down

0 comments on commit 9ac4254

Please sign in to comment.