-
-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathpifinder_post_update.sh
More file actions
52 lines (44 loc) · 1.41 KB
/
pifinder_post_update.sh
File metadata and controls
52 lines (44 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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" ]
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" ]
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" ]
then
source /home/pifinder/PiFinder/migration_source/v2.1.0.sh
touch /home/pifinder/PiFinder_data/migrations/v2.1.0
fi
# v2.2.1
# Install libinput
if ! [ -f "/home/pifinder/PiFinder_data/migrations/v2.2.1" ]
then
source /home/pifinder/PiFinder/migration_source/v2.2.1.sh
touch /home/pifinder/PiFinder_data/migrations/v2.2.1
fi
# v2.2.2
# Enable host usb on usb-c port
if ! [ -f "/home/pifinder/PiFinder_data/migrations/v2.2.2" ]
then
source /home/pifinder/PiFinder/migration_source/v2.2.2.sh
touch /home/pifinder/PiFinder_data/migrations/v2.2.2
fi
# v2.4.0
# Switch detect to system process
if ! [ -f "/home/pifinder/PiFinder_data/migrations/v2.4.0" ]
then
source /home/pifinder/PiFinder/migration_source/v2.4.0.sh
touch /home/pifinder/PiFinder_data/migrations/v2.4.0
fi
# DONE
echo "Post Update Complete"