Update UPDATE.sh

This commit is contained in:
Stefan Pejcic 2024-11-08 16:58:54 +01:00 committed by GitHub
parent 4dbbd4b736
commit 405fe97358
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,6 +85,9 @@ FUNCTIONS=(
# update admin from github
download_new_admin
# only for 0.3.5!!!!!!!!!!!!!!!!!!!
install_pip_pack
# update opencli
opencli_update
@ -148,12 +151,14 @@ print_space_and_line() {
install_pip_pack() {
# TEMPORAY FOR 0.3.5
echo "Installing flask_limiter.."
pip3 install --force-reinstall flask_limiter || pip3 install --force-reinstall flask_limiter --break-system-packages
}
restart_admin_panel_if_needed() {
# TEMPORAY FOR 0.3.5
pip3 install --force-reinstall flask_limiter || pip3 install --force-reinstall flask_limiter --break-system-packages
echo "Restarting OpenAdmin service.."
service admin restart
}