mynode/rootfs/standard/usr/bin/mynode-pyblock
2021-05-13 22:50:05 -05:00

6 lines
199 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 PyBlock.py"