From ee1f572f18c59556955777438274e791ae17d1b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 16 Nov 2023 13:45:56 +0100 Subject: [PATCH] fix --- manifest.toml | 5 +++++ scripts/install | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/manifest.toml b/manifest.toml index abee470..0ef5220 100644 --- a/manifest.toml +++ b/manifest.toml @@ -68,6 +68,11 @@ ram.runtime = "50M" sha256 = "a6b93fb05ef6bf9ab206fd4bcffda763a2cf33ea27e7f83000c335bbdf97f310" autoupdate.strategy = "latest_github_tag" + [resources.sources.rabbitmq] + url = "https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.12.8/rabbitmq-server_3.12.8-1_all.deb" + sha256 = "bc796fed9477c6c2ea56b3ecaea529ee3abc19cf2bab74a5fb79fad856d2dfef" + autoupdate.strategy = "latest_github_tag" + [resources.system_user] allow_email = true diff --git a/scripts/install b/scripts/install index ecbb235..0c81dc1 100644 --- a/scripts/install +++ b/scripts/install @@ -20,6 +20,18 @@ ynh_script_progression --message="Setting up source files..." --weight=6 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" +ynh_setup_source --dest_dir="$install_dir" --source_id="rabbitmq" + +#================================================= +# INSTALL RABBITMQ +#================================================= +ynh_script_progression --message="Installing RabbitMQ..." + +tempdir="$(mktemp -d)" +ynh_setup_source --dest_dir=$tempdir --source_id="rabbitmq" +dpkg -i $tempdir/rabbitmq-server.deb +ynh_secure_remove --file="$tempdir" + #================================================= # NGINX CONFIGURATION #=================================================