Skip to content

Commit f2f1037

Browse files
authored
Add xmlsec as dependency (#3762)
1 parent 3ab2ecc commit f2f1037

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

ct/tandoor.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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
5559
msg_ok "Completed Successfully!\n"
5660
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
5761
echo -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}"

install/tandoor-install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
4243
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
4344
msg_ok "Setup Python3"
4445

0 commit comments

Comments
 (0)