feat(packaging) : package YunoHost veille-ia_ynh (packaging v2, helpers 2.1)

- manifest.toml validé contre le schéma officiel manifest.v2.schema.json
  (sources par tag forge avec placeholder sha256 assumé, nodejs 24, ports,
  system_user, install_dir, data_dir, permission privée all_users, SSO)
- Scripts install/remove/upgrade/backup/restore/change_url (bash -n OK) :
  build au fil de l'eau avec BASE_PATH, ALERTS_TOKEN généré à l'install,
  .env chmod 400, logs journald
- conf/nginx.conf : proxy_params_with_auth (header Ynh-User), conf/systemd.service :
  node via __NODEJS_DIR__, sandboxing modéré, conf/env : DATA_DIR/OLLAMA_URL/ALERTS_TOKEN
- tests.toml minimal, doc DESCRIPTION/ADMIN fr+en
- README racine : dev local, variables d'env, procédure de release, Ollama
This commit is contained in:
cyber-mawonaj
2026-08-01 09:25:39 -04:00
parent ff26136dfb
commit b3ff529cfa
17 changed files with 559 additions and 39 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
ynh_script_progression "Suppression de la configuration système de veille-ia..."
# Les ressources (user, dossiers, port, nodejs, permissions) sont déprovisionnées
# automatiquement par le cœur après ce script. Le data_dir est conservé sauf --purge.
if ynh_hide_warnings yunohost service status "$app" >/dev/null; then
yunohost service remove "$app"
fi
ynh_config_remove_systemd
ynh_config_remove_nginx
ynh_script_progression "Suppression de veille-ia terminée"