12 lines
208 B
Bash
12 lines
208 B
Bash
|
#!/bin/bash -e
|
||
|
|
||
|
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
|