From b185f287a2bb35b0650507cbc5a3c2f0913f9e7c Mon Sep 17 00:00:00 2001 From: Lucas F Date: Mon, 24 Jul 2023 14:50:47 -0300 Subject: [PATCH] update: update_set_error para collectstatic --- run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run.sh b/run.sh index f7e9036..8437dcd 100755 --- a/run.sh +++ b/run.sh @@ -325,6 +325,9 @@ execute_collec_mig_createsup() { mkdir -p /home/$USERNAME/$APP/staticfiles && /home/$USERNAME/$APP/$VENV/bin/python3 /home/$USERNAME/$APP/manage.py collectstatic --noinput && /home/$USERNAME/$APP/$VENV/bin/python3 /home/$USERNAME/$APP/manage.py migrate + if [[ $? -ge 1 ]]; then + update_step_error "$x" + fi } # Instala o firewall