Remove temp. Tandoor during Install & Update Issues (#6438)
* Tandoor: Remove update & from website until breaking * remove json
This commit is contained in:
parent
3c889430ed
commit
6f096b04fe
@ -27,27 +27,27 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
if ! [[ $(dpkg -s python3-xmlsec 2>/dev/null) ]]; then
|
#if ! [[ $(dpkg -s python3-xmlsec 2>/dev/null) ]]; then
|
||||||
$STD apt-get update
|
#$STD apt-get update
|
||||||
$STD apt-get install -y python3-xmlsec
|
#$STD apt-get install -y python3-xmlsec
|
||||||
fi
|
#fi
|
||||||
if cd /opt/tandoor && git pull | grep -q 'Already up to date'; then
|
#if cd /opt/tandoor && git pull | grep -q 'Already up to date'; then
|
||||||
msg_ok "There is currently no update available."
|
msg_ok "There is currently no update available."
|
||||||
else
|
#else
|
||||||
msg_info "Updating ${APP} (Patience)"
|
#msg_info "Updating ${APP} (Patience)"
|
||||||
export $(cat /opt/tandoor/.env | grep "^[^#]" | xargs)
|
#export $(cat /opt/tandoor/.env | grep "^[^#]" | xargs)
|
||||||
cd /opt/tandoor/
|
#cd /opt/tandoor/
|
||||||
$STD pip3 install -r requirements.txt
|
#$STD pip3 install -r requirements.txt
|
||||||
$STD /usr/bin/python3 /opt/tandoor/manage.py migrate
|
#$STD /usr/bin/python3 /opt/tandoor/manage.py migrate
|
||||||
$STD /usr/bin/python3 /opt/tandoor/manage.py collectstatic --no-input
|
#$STD /usr/bin/python3 /opt/tandoor/manage.py collectstatic --no-input
|
||||||
$STD /usr/bin/python3 /opt/tandoor/manage.py collectstatic_js_reverse
|
#$STD /usr/bin/python3 /opt/tandoor/manage.py collectstatic_js_reverse
|
||||||
cd /opt/tandoor/vue
|
#cd /opt/tandoor/vue
|
||||||
$STD yarn install
|
#$STD yarn install
|
||||||
$STD yarn build
|
#$STD yarn build
|
||||||
cd /opt/tandoor
|
#cd /opt/tandoor
|
||||||
$STD python3 version.py
|
#$STD python3 version.py
|
||||||
systemctl restart gunicorn_tandoor
|
#systemctl restart gunicorn_tandoor
|
||||||
msg_ok "Updated ${APP}"
|
#msg_ok "Updated ${APP}"
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user