DeMiro5001 6 miesięcy temu
rodzic
commit
19ff9fadb3
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      scripts/restore

+ 4 - 0
scripts/restore

@@ -31,6 +31,10 @@ 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
+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"
 
 #ynh_restore "/etc/fail2ban/jail.d/$app.conf"