|
|
@@ -7,6 +7,13 @@
|
|
|
source _common.sh
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
+#=================================================
|
|
|
+# STOP SYSTEMD SERVICE
|
|
|
+#=================================================
|
|
|
+ynh_script_progression "Stopping $app's systemd service..."
|
|
|
+
|
|
|
+ynh_systemctl --service="$app" --action="stop"
|
|
|
+
|
|
|
#=================================================
|
|
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
|
|
#=================================================
|
|
|
@@ -24,6 +31,10 @@ ynh_script_progression "Upgrading system configurations related to $app..."
|
|
|
|
|
|
ynh_config_add_nginx
|
|
|
|
|
|
+ynh_config_add_systemd
|
|
|
+
|
|
|
+yunohost service add "$app" --description="User-friendly AI Interface (Supports Ollama, OpenAI API, ...)" --log="/var/log/$app/$app.log"
|
|
|
+
|
|
|
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"
|