From 4ee9cdce7c6327478b96de2a35bdc75fe0e861f0 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Thu, 9 Nov 2023 09:12:59 +0100 Subject: [PATCH] snap/hooks/post-refresh: Add README in $SNAP_COMMON/logs. Now that MicroOVN logs are sent to the systemd-journal, the presence of log files in $SNAP_COMMON/logs/ may be confusing. As laid out in 79b16414176cade63ec180c09a3d8261e923e44a there is no way to avoid their creation for fresh installs, and having them present may also be useful in the event debug logging is necessary. Copy the documentation page about logs into $SNAP_COMMON/logs. Signed-off-by: Frode Nordahl --- snap/hooks/post-refresh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 snap/hooks/post-refresh diff --git a/snap/hooks/post-refresh b/snap/hooks/post-refresh new file mode 100755 index 00000000..a19d9c82 --- /dev/null +++ b/snap/hooks/post-refresh @@ -0,0 +1,4 @@ +#!/bin/sh + +mkdir -p $SNAP_COMMON/logs +cp $SNAP/docs/microovn/how-to/logs.txt $SNAP_COMMON/logs/README