mynode/rootfs/standard/usr/bin/mynode-pyblock

6 lines
199 B
Plaintext
Raw Normal View History

2021-05-14 03:50:05 +00:00
#!/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"