Skip to content

Commit

Permalink
snap/hooks/post-refresh: Add README in $SNAP_COMMON/logs.
Browse files Browse the repository at this point in the history
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 79b1641 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 <[email protected]>
  • Loading branch information
fnordahl committed Nov 10, 2023
1 parent 6b2b199 commit 4ee9cdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snap/hooks/post-refresh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

mkdir -p $SNAP_COMMON/logs
cp $SNAP/docs/microovn/how-to/logs.txt $SNAP_COMMON/logs/README

0 comments on commit 4ee9cdc

Please sign in to comment.