diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-09-15 15:20:38 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-09-15 15:20:38 +0200 |
commit | d4a533a8002c96301b3b010c33a60bde38315b05 (patch) | |
tree | 07c0df51b77131e3862a48cb829f69c03d0b81ca /contrib/snap | |
parent | Merge pull request #1067 (diff) | |
parent | Add libminiupnpc and libunwind to snap. (diff) | |
download | monero-d4a533a8002c96301b3b010c33a60bde38315b05.tar.xz |
Merge pull request #1068
a5af33d Add libminiupnpc and libunwind to snap. (Casey Marshall)
823843e Fix portability issues discovered with fresh snap install. (Casey Marshall)
0a56d83 Add snap packaging. (Casey Marshall)
Diffstat (limited to 'contrib/snap')
-rwxr-xr-x | contrib/snap/daemon.bash | 12 | ||||
-rwxr-xr-x | contrib/snap/log.bash | 3 | ||||
-rwxr-xr-x | contrib/snap/wallet.bash | 7 |
3 files changed, 22 insertions, 0 deletions
diff --git a/contrib/snap/daemon.bash b/contrib/snap/daemon.bash new file mode 100755 index 000000000..41d1275de --- /dev/null +++ b/contrib/snap/daemon.bash @@ -0,0 +1,12 @@ +#!/bin/bash -e + +export LD_LIBRARY_PATH=${SNAP_LIBRARY_PATH}:${SNAP}/usr/lib/x86_64-linux-gnu +export HOME=${SNAP_DATA} +cd ${SNAP_DATA} + +ARGS= +if [ -e "${SNAP_DATA}/etc/monerod.conf" ]; then + ARGS="--config-file ${SNAP_DATA}/etc/monerod.conf" +fi + +exec ${SNAP}/bin/monerod --detach $ARGS diff --git a/contrib/snap/log.bash b/contrib/snap/log.bash new file mode 100755 index 000000000..c81efeb2c --- /dev/null +++ b/contrib/snap/log.bash @@ -0,0 +1,3 @@ +#!/bin/bash -e + +exec tail -c +0 -F ${SNAP_DATA}/.bitmonero/bitmonero.log diff --git a/contrib/snap/wallet.bash b/contrib/snap/wallet.bash new file mode 100755 index 000000000..004f1371e --- /dev/null +++ b/contrib/snap/wallet.bash @@ -0,0 +1,7 @@ +#!/bin/bash -e + +export LD_LIBRARY_PATH=${SNAP_LIBRARY_PATH}:${SNAP}/usr/lib/x86_64-linux-gnu +export HOME=${SNAP_USER_DATA} +cd ${SNAP_USER_DATA} + +exec ${SNAP}/usr/bin/rlwrap ${SNAP}/bin/monero-wallet-cli "$@" |