File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -27,20 +27,24 @@ function update_script() {
2727 msg_error " No ${APP} Installation Found!"
2828 exit
2929 fi
30+ if ! [[ $( dpkg -s python3-xmlsec 2> /dev/null) ]]; then
31+ $STD apt-get update
32+ $STD apt-get install -y python3-xmlsec
33+ fi
3034 if cd /opt/tandoor && git pull | grep -q ' Already up to date' ; then
3135 msg_ok " There is currently no update available."
3236 else
3337 msg_info " Updating ${APP} (Patience)"
3438 export $( cat /opt/tandoor/.env | grep " ^[^#]" | xargs)
35- cd /opt/tandoor/
39+ cd /opt/tandoor/ || exit
3640 $STD pip3 install -r requirements.txt
3741 $STD /usr/bin/python3 /opt/tandoor/manage.py migrate
3842 $STD /usr/bin/python3 /opt/tandoor/manage.py collectstatic --no-input
3943 $STD /usr/bin/python3 /opt/tandoor/manage.py collectstatic_js_reverse
40- cd /opt/tandoor/vue
44+ cd /opt/tandoor/vue || exit
4145 $STD yarn install
4246 $STD yarn build
43- cd /opt/tandoor
47+ cd /opt/tandoor || exit
4448 $STD python3 version.py
4549 systemctl restart gunicorn_tandoor
4650 msg_ok " Updated ${APP} "
@@ -55,4 +59,4 @@ description
5559msg_ok " Completed Successfully!\n"
5660echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
5761echo -e " ${INFO}${YW} Access it using the following URL:${CL} "
58- echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :8002${CL} "
62+ echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :8002${CL} "
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ $STD apt-get install -y \
3838 python3 \
3939 python3-dev \
4040 python3-setuptools \
41- python3-pip
41+ python3-pip \
42+ python3-xmlsec
4243rm -rf /usr/lib/python3.* /EXTERNALLY-MANAGED
4344msg_ok " Setup Python3"
4445
You can’t perform that action at this time.
0 commit comments