aboutsummaryrefslogtreecommitdiff
path: root/contrib/snap/monerod-wrapper
diff options
context:
space:
mode:
authorvdo <vdo@greyfaze.net>2017-02-24 02:20:02 +0100
committervdo <vdo@greyfaze.net>2017-02-24 02:20:02 +0100
commit2c51c4d186134829aa84c1c07373f20cd2ebd277 (patch)
tree6a309b7f941ad24c74725480e2bf66efaf17a3fc /contrib/snap/monerod-wrapper
parentMerge pull request #1775 (diff)
downloadmonero-2c51c4d186134829aa84c1c07373f20cd2ebd277.tar.xz
Reorganize snap. Add daemon wrapper
Diffstat (limited to 'contrib/snap/monerod-wrapper')
-rw-r--r--contrib/snap/monerod-wrapper8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/snap/monerod-wrapper b/contrib/snap/monerod-wrapper
new file mode 100644
index 000000000..f7266e11c
--- /dev/null
+++ b/contrib/snap/monerod-wrapper
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ ! -d "$SNAP_USER_DATA/etc" ]; then
+ mkdir $SNAP_USER_DATA/etc/
+ cp -R $SNAP/etc/monerod.conf $SNAP_USER_DATA/etc/monerod.conf
+fi
+
+exec "$SNAP/bin/monerod" "$@"