From 3542b2dcbe464ea1b1b5be9daa2277d2b1ca61ae Mon Sep 17 00:00:00 2001 From: Roman Demidov Date: Mon, 3 Apr 2023 12:50:46 +0300 Subject: [PATCH] Fix #61689: RabbitMQ no longer starts after refresh (#126) --- bin/rabbitmq-env-start.sh | 10 +++++----- snap/snapcraft.yaml | 4 ---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/bin/rabbitmq-env-start.sh b/bin/rabbitmq-env-start.sh index a08099f..d30b651 100755 --- a/bin/rabbitmq-env-start.sh +++ b/bin/rabbitmq-env-start.sh @@ -2,10 +2,10 @@ umask 0066 -RABBITMQ_MNESIA_BASE="$SNAP_DATA/var/lib/rabbitmq/mnesia" -RABBITMQ_LOG_BASE="$SNAP_DATA/var/log/rabbitmq" -RABBITMQ_GENERATED_CONFIG_DIR="$SNAP_DATA/var/lib/rabbitmq/config" -RABBITMQ_SCHEMA_DIR="$SNAP_DATA/var/lib/rabbitmq/schema" -RABBITMQ_CONF_ENV_FILE="$SNAP/rabbitmq-env.conf" +export RABBITMQ_MNESIA_BASE="$SNAP_DATA/var/lib/rabbitmq/mnesia" +export RABBITMQ_LOG_BASE="$SNAP_DATA/var/log/rabbitmq" +export RABBITMQ_GENERATED_CONFIG_DIR="$SNAP_DATA/var/lib/rabbitmq/config" +export RABBITMQ_SCHEMA_DIR="$SNAP_DATA/var/lib/rabbitmq/schema" +export RABBITMQ_CONF_ENV_FILE="$SNAP/rabbitmq-env.conf" . `dirname $0`/rabbitmq-env \ No newline at end of file diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 94673be..bfa7fe4 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -17,10 +17,6 @@ layout: bind: $SNAP_DATA/etc/my.cnf.d /usr/bin/python: bind-file: $SNAP/usr/bin/python2.7 - /var/lib/rabbitmq/mnesia: - bind: $SNAP_DATA/var/lib/rabbitmq/mnesia - /var/log/rabbitmq: - bind: $SNAP_DATA/var/log/rabbitmq environment: HOME: $SNAP_DATA