Skip to content

Commit

Permalink
working on conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
brickbots committed Nov 30, 2024
1 parent 92ca4af commit 442fe41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pifinder_post_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ git submodule update --init --recursive
sudo pip install -r /home/pifinder/PiFinder/python/requirements.txt

# Set up migrations folder if it does not exist
if ! [ -d "/home/pifinder/PiFinder_data/migrations"]
if ! [ -d "/home/pifinder/PiFinder_data/migrations" ]
then
mkdir /home/pifinder/PiFinder_data/migrations
fi

# v1.x.x
# everying prior to selecitve migrations
if ! [ -f "/home/pifinder/PiFinder_data/migrations/v1.x.x"]
if ! [ -f "/home/pifinder/PiFinder_data/migrations/v1.x.x" ]
then
source /home/pifinder/PiFinder/migration_source/v1.x.x.sh
touch /home/pifinder/PiFinder_data/migrations/v1.x.x
fi

# v2.1.0
# Switch to Cedar
if ! [ -f "/home/pifinder/PiFinder_data/migrations/v2.1.0"]
if ! [ -f "/home/pifinder/PiFinder_data/migrations/v2.1.0" ]
then
source /home/pifinder/PiFinder/migration_source/v2.1.0.sh
touch /home/pifinder/PiFinder_data/migrations/v2.1.0
Expand Down

0 comments on commit 442fe41

Please sign in to comment.