| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #!/bin/bash
- #=================================================
- # IMPORT GENERIC HELPERS
- #=================================================
- source _common.sh
- source /usr/share/yunohost/helpers
- #=================================================
- # DOWNLOAD, CHECK AND UNPACK SOURCE
- #=================================================
- pushd
- python3 -m venv venv
- pip install -U open-webui
- open-webui serve
- popd
- chown -R "$app:www-data" "$install_dir"
- #=================================================
- # REAPPLY SYSTEM CONFIGURATION
- #=================================================
- ynh_script_progression "Upgrading system configurations related to $app..."
- ynh_config_add_nginx
- ynh_config_add_logrotate
- #ynh_config_add_fail2ban --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login"
- #=================================================
- # START SYSTEMD SERVICE
- #=================================================
- ynh_script_progression "Starting $app's systemd service..."
- ynh_systemctl --service="$app" --action="start"
- #=================================================
- # END OF SCRIPT
- #=================================================
- ynh_script_progression "Upgrade of $app completed"
|