From 36c607e9187e3a59b04de2b054467f606b648f64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 1 Jul 2024 15:29:07 +0200 Subject: [PATCH] Handle bookworm having metronome as an app --- doc/DESCRIPTION.md | 2 +- manifest.toml | 13 ++++++++++++- tests.toml | 10 +++++++++- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md index 4f147e0..b3b4312 100644 --- a/doc/DESCRIPTION.md +++ b/doc/DESCRIPTION.md @@ -1 +1 @@ -XMPP gateway for the IRC network \ No newline at end of file +XMPP gateway for the IRC network. Needs Metronome. diff --git a/manifest.toml b/manifest.toml index c6368a8..33a23f6 100644 --- a/manifest.toml +++ b/manifest.toml @@ -1,3 +1,5 @@ +#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/manifest.v2.schema.json + packaging_format = 2 id = "biboumi" @@ -45,7 +47,16 @@ ram.runtime = "50M" [resources.install_dir] + [resources.data_dir] + dir = "/var/lib/__APP__" + [resources.permissions] [resources.apt] - packages = "metronome, biboumi" + packages = [ "biboumi", ] + + packages_from_raw_bash = """ + if [[ $YNH_DEBIAN_VERSION == "bullseye" ]]; then + echo "metronome"; + fi + """ diff --git a/tests.toml b/tests.toml index eb73b8d..70ff51b 100644 --- a/tests.toml +++ b/tests.toml @@ -1,3 +1,11 @@ +#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/tests.v1.schema.json + test_format = 1.0 -[default] \ No newline at end of file +[default] + + preinstall = """" + if cat /etc/os-release | grep --quiet bookworm 2>/dev/null; then + yunohost app install --force https://github.com/yunoHost-Apps/metronome_ynh -a 'domain=domain.tld&init_main_permission=visitors' + fi + """