Explorar o código

Update restore

DeMiro5001 hai 6 meses
pai
achega
19ff9fadb3
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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"