Procházet zdrojové kódy

Merge pull request #12 from YunoHost-Apps/testing

Testing
DeMiro5001 před 4 měsíci
rodič
revize
178b722cda
6 změnil soubory, kde provedl 14 přidání a 6 odebrání
  1. 1 1
      README.md
  2. 3 3
      manifest.toml
  3. 1 1
      scripts/change_url
  4. 4 0
      scripts/install
  5. 4 0
      scripts/restore
  6. 1 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.23~ynh1](https://img.shields.io/badge/Version-0.6.23~ynh1-rgb(18,138,11)?style=for-the-badge)](https://ci-apps.yunohost.org/ci/apps/open-webui/)
+[![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/)
 
 <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>

+ 3 - 3
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.23~ynh1"
+version = "0.6.25~ynh1"
 
 maintainers = ["DeMiro5001"]
 
@@ -55,8 +55,8 @@ ram.runtime = "2G"
     [resources.sources]
 
     [resources.sources.main]
-    url = "https://github.com/open-webui/open-webui/archive/refs/tags/v0.6.23.tar.gz"
-    sha256 = "a085beb28bb57d2194b20652ec70df466362d39d9ff5b24310586142d7039dfc"
+    url = "https://github.com/open-webui/open-webui/archive/refs/tags/v0.6.25.tar.gz"
+    sha256 = "38658ed08583e784ccbc1dbd52fbcb1a27ff41d62b1fff59048a30f47de16f0d"
 
     autoupdate.strategy = "latest_github_tag"
 

+ 1 - 1
scripts/change_url

@@ -41,7 +41,7 @@ chown "$app:$app" "$install_dir/.env"
 #=================================================
 ynh_script_progression "Starting $app's systemd service..."
 
-ynh_systemctl --service="$app" --action="start"
+ynh_systemctl --service="$app" --action="start" --wait_until="No requirements found in frontmatter"
 
 #=================================================
 # END OF SCRIPT

+ 4 - 0
scripts/install

@@ -41,6 +41,8 @@ ynh_config_add --template=".env" --destination="$install_dir/.env"
 
 chmod 400 "$install_dir/.env"
 chown "$app:$app" "$install_dir/.env"
+mkdir -p "/var/log/$app"
+chown "$app:$app" "/var/log/$app"
 
 #=================================================
 # SYSTEM CONFIGURATION
@@ -51,6 +53,8 @@ ynh_config_add_nginx
 
 ynh_config_add_systemd
 
+ynh_systemctl --service="$app" --action="start" --wait_until="No requirements found in frontmatter" --timeout=600
+
 yunohost service add "$app" --description="User-friendly AI Interface (Supports Ollama, OpenAI API, ...)" --log="/var/log/$app/$app.log"
 
 ynh_config_add_logrotate

+ 4 - 0
scripts/restore

@@ -32,7 +32,11 @@ ynh_script_progression "Restoring system configurations related to $app..."
 ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf"
 
 ynh_restore "/etc/systemd/system/$app.service"
+
 systemctl enable "$app.service" --quiet
+
+ynh_systemctl --service="$app" --action="start" --wait_until="No requirements found in frontmatter" --timeout=600
+
 yunohost service add "$app" --description="User-friendly AI Interface (Supports Ollama, OpenAI API, ...)" --log="/var/log/$app/$app.log"
 
 ynh_restore "/etc/logrotate.d/$app"

+ 1 - 1
scripts/upgrade

@@ -44,7 +44,7 @@ ynh_config_add_logrotate
 #=================================================
 ynh_script_progression "Starting $app's systemd service..."
 
-ynh_systemctl --service="$app" --action="start"
+ynh_systemctl --service="$app" --action="start" --wait_until="No requirements found in frontmatter" --timeout=600
 
 #=================================================
 # END OF SCRIPT