mynode/rootfs/standard/usr/bin/mynode-warden-terminal

7 lines
311 B
Plaintext
Raw Normal View History

2021-12-05 22:11:22 +00:00
#!/bin/bash
# mynode-warden-terminal
# This script needs to be run with sudo so it can run as the bitcoin user
cp -f /usr/share/mynode/wardenterminal.ini /opt/mynode/wardenterminal/config.ini
sudo -u bitcoin bash -c "cd /opt/mynode/wardenterminal/; source env/bin/activate; python3 node_warden.py 2>/dev/null"