Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Add a launcher wrapper to copy the config and certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Arias committed Feb 11, 2017
1 parent 3c0632c commit b6c798a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
9 changes: 9 additions & 0 deletions snap/kovri-wrapper
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

if [ ! -d "$SNAP_USER_DATA/.kovri" ]; then
mkdir $SNAP_USER_DATA/.kovri/
cp -R $SNAP/config $SNAP_USER_DATA/.kovri/
cp -R $SNAP/client $SNAP_USER_DATA/.kovri/
fi

exec "$SNAP/bin/kovri" "$@"
10 changes: 8 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ confinement: strict

apps:
kovri:
command: kovri
command: kovri-wrapper
plugs: [network, network-bind]

parts:
Expand All @@ -23,6 +23,12 @@ parts:
- libssl1.0.0
artifacts:
- build/kovri
- pkg
- pkg/config
- pkg/client
organize:
build/kovri: bin/
pkg/*: .
wrapper:
plugin: dump
source: snap/
stage: [kovri-wrapper]

0 comments on commit b6c798a

Please sign in to comment.