5
5
# TO ACTIVATE: cp .githooks/post-merge .git/hooks/.
6
6
#
7
7
# Checks:
8
- # - Changes to web app
8
+ # - Changes to Web App
9
9
# - Changes to web dependency
10
10
# - Changes to python requirements
11
11
#
@@ -20,7 +20,7 @@ warn_npm_dependency() {
20
20
echo " ************************************************************"
21
21
echo " ATTENTION: npm dependencies have changed since last pull!"
22
22
echo " "
23
- echo " To update dependencies and rebuilt WebApp run:"
23
+ echo " To update dependencies and rebuilt Web App run:"
24
24
echo " $ cd src/webapp && ./run_rebuild.sh -u"
25
25
echo " ************************************************************"
26
26
echo -e " \n"
@@ -31,7 +31,7 @@ warn_webapp() {
31
31
echo " ************************************************************"
32
32
echo " ATTENTION: Web App sources have changed since last pull!"
33
33
echo " "
34
- echo " To rebuilt the WebApp run:"
34
+ echo " To rebuilt the Web App run:"
35
35
echo " $ cd src/webapp && ./run_rebuild.sh"
36
36
echo " ************************************************************"
37
37
echo -e " \n"
@@ -43,6 +43,7 @@ warn_python_requirements() {
43
43
echo " ATTENTION: Python requirements have changed since last pull!"
44
44
echo " "
45
45
echo " To update python requirements on the RPi run"
46
+ echo " $ source .venv/bin/activate"
46
47
echo " $ python -m pip install --upgrade -r requirements.txt"
47
48
echo " ************************************************************"
48
49
echo -e " \n"
@@ -57,14 +58,25 @@ warn_githooks() {
57
58
echo " $ cp .githooks/* .git/hooks/."
58
59
echo " ************************************************************"
59
60
echo -e " \n"
61
+ }
60
62
63
+ warn_installer () {
64
+ echo -e " \n"
65
+ echo " ************************************************************"
66
+ echo " ATTENTION: Installer sources have changed since last pull!"
67
+ echo " "
68
+ echo " Rerun the installer to apply changes"
69
+ echo " $ ./installation/install-jukebox.sh"
70
+ echo " ************************************************************"
71
+ echo -e " \n"
61
72
}
62
73
63
74
# files_changed="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
64
75
webapp_changed=" $( git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD src/webapp) "
65
76
webapp_dep_changed=" $( git diff --name-only --no-commit-id ORIG_HEAD HEAD src/webapp/package.json) "
66
77
python_req_changed=" $( git diff --name-only --no-commit-id ORIG_HEAD HEAD requirements.txt) "
67
78
githooks_changed=" $( git diff --name-only --no-commit-id ORIG_HEAD HEAD .githooks) "
79
+ installer_changed=" $( git diff --name-only --no-commit-id ORIG_HEAD HEAD installation) "
68
80
69
81
if [[ -n $python_req_changed ]]; then
70
82
warn_python_requirements
@@ -80,5 +92,9 @@ if [[ -n $githooks_changed ]]; then
80
92
warn_githooks
81
93
fi
82
94
95
+ if [[ -n $installer_changed ]]; then
96
+ warn_installer
97
+ fi
98
+
83
99
echo -e " \nTo see a summary of what happened since your last pull, do:"
84
- echo -e " git show --oneline -s ORIG_HEAD..HEAD\n"
100
+ echo -e " git show --oneline -s ORIG_HEAD..HEAD\n"
0 commit comments