mynode/rootfs/standard/usr/bin/mynode-warden-terminal
2021-12-05 16:11:22 -06:00

7 lines
311 B
Bash
Executable File

#!/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"