소스 검색

Update restore

DeMiro5001 5 달 전
부모
커밋
7adfcb48b4
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      scripts/restore

+ 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"
+
 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"