Jelajahi Sumber

Merge pull request #14 from YunoHost-Apps/testing

Fix upgrade
DeMiro5001 4 bulan lalu
induk
melakukan
12ca454216
3 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 1 1
      README.md
  2. 1 1
      manifest.toml
  3. 3 1
      scripts/upgrade

+ 1 - 1
README.md

@@ -11,7 +11,7 @@ It shall NOT be edited by hand.
 User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
 
 [![🌐 Official app website](https://img.shields.io/badge/Official_app_website-darkgreen?style=for-the-badge)](https://openwebui.com/)
-[![Version: 0.6.25~ynh1](https://img.shields.io/badge/Version-0.6.25~ynh1-rgb(18,138,11)?style=for-the-badge)](https://ci-apps.yunohost.org/ci/apps/open-webui/)
+[![Version: 0.6.25~ynh2](https://img.shields.io/badge/Version-0.6.25~ynh2-rgb(18,138,11)?style=for-the-badge)](https://ci-apps.yunohost.org/ci/apps/open-webui/)
 
 <div align="center">
 <a href="https://apps.yunohost.org/app/open-webui"><img height="100px" src="https://github.com/YunoHost/yunohost-artwork/raw/refs/heads/main/badges/neopossum-badges/badge_more_info_on_the_appstore.svg"/></a>

+ 1 - 1
manifest.toml

@@ -7,7 +7,7 @@ name = "Open WebUI"
 description.en = "User-friendly AI Interface (Supports Ollama, OpenAI API, ...)"
 description.fr = "Interface IA conviviale (Supporte Ollama, API OpenAI, ...)"
 
-version = "0.6.25~ynh1"
+version = "0.6.25~ynh2"
 
 maintainers = ["DeMiro5001"]
 

+ 3 - 1
scripts/upgrade

@@ -19,7 +19,9 @@ ynh_systemctl --service="$app" --action="stop"
 #=================================================
 
 pushd $install_dir
- ynh_exec_as_app $install_dir/pip install -U open-webui
+ source "$install_dir/venv/bin/activate"
+ pip install -U open-webui
+ deactivate
 popd
 
 chown -R "$app:www-data" "$install_dir"