mynode/rootfs/standard/usr/bin/mynode-pyblock
2021-12-18 11:25:17 -06:00

6 lines
210 B
Bash
Executable File

#!/bin/bash
# mynode-pyblock
# This script needs to be run with sudo so it can run as the bitcoin user
sudo -u bitcoin bash -c "cd /opt/mynode/pyblock/; source env/bin/activate; python3 pybitblock/PyBlock.py"