menu: fix yg logs with correct path, exit to scripts dir

This commit is contained in:
openoms 2020-06-18 13:48:29 +01:00
parent 68997f61b7
commit 0d73fb3da5
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65
2 changed files with 6 additions and 5 deletions

View file

@ -136,6 +136,7 @@ case $CHOICE in
/home/joinmarket/menu.sh
;;
X)
cd /home/joinmarket/joinmarket-clientserver/scripts/
clear
echo "***********************************"
echo "* JoininBox Commandline"

View file

@ -90,10 +90,11 @@ Will tail the latest YG logfile from:
/home/joinmarket/.joinmarket/logs/
Press CTRL+C to exit and return to the menu." 10 50
ls -t /home/joinmarket/.joinmarket/logs | grep J5 | head -n 1 | xargs tail -fn1000
cd /home/joinmarket/.joinmarket/logs
ls -t | grep J5 | head -n 1 | xargs tail -fn1000
echo "Press ENTER to return to menu"
read key
cd /home/joinmarket/joinmarket-clientserver/scripts/
/home/joinmarket/menu.sh
;;
STOP)
@ -108,8 +109,7 @@ Press CTRL+C to exit and return to the menu." 10 50
# sudo systemctl list-units --type=service
sudo systemctl reset-failed
echo "Stopped the Yield Generator background service"
echo "Returning to the menu..."
sleep 1
/home/joinmarket/menu.sh
echo "Press ENTER to return to the menu..."
read key
;;
esac