2016-09-01 13:23:36 -06:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2016-09-11 17:14:38 -06:00
|
|
|
export LD_LIBRARY_PATH=${SNAP_LIBRARY_PATH}:${SNAP}/usr/lib/x86_64-linux-gnu
|
2016-09-01 13:23:36 -06:00
|
|
|
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
|