#1860 sphinx things (#1883)

This commit is contained in:
Christian Rotzoll 2020-12-18 22:10:36 +01:00 committed by rootzoll
parent 1c3c444361
commit d7fe0fe04f
3 changed files with 16 additions and 3 deletions

View File

@ -374,7 +374,10 @@ if [ "${sphinxrelay}" != "${choice}" ]; then
anychange=1
sudo -u admin /home/admin/config.scripts/bonus.sphinxrelay.sh ${choice}
if [ "${choice}" = "on" ]; then
sudo -u admin /home/admin/config.scripts/bonus.sphinxrelay.sh menu
whiptail --title " Installed Sphinx Server" --msgbox "\
Sphinx Server was installed.\n
Use the new 'SPHINX' entry in Main Menu for more info.\n
" 10 35
fi
else
echo "Sphinx Relay unchanged."

View File

@ -161,6 +161,16 @@ else
echo "- SPECTER is OFF by config"
fi
if [ "${sphinxrelay}" = "on" ]; then
echo ""
echo "*** LAST 20 SPHINX LOGS ***"
echo "sudo journalctl -u sphinxrelay -b --no-pager -n20"
sudo journalctl -u sphinxrelay -b --no-pager -n20
echo ""
else
echo "- SPHINX is OFF by config"
fi
echo ""
echo "*** MOUNTED DRIVES ***"
df -T

View File

@ -26,7 +26,7 @@ if [ "$1" = "menu" ]; then
whiptail --title " Warning " \
--yes-button "Back" \
--no-button "Continue Anyway" \
--yesno "Your IP2TOR+LetsEncrypt may have problems:\n${ip2torWarn}\n\nCheck if locally responding: http://${localIP}:${httpPort}\n\nCheck if service is reachable over Tor:\n${toraddress}" 14 72
--yesno "Your SPHINX SERVER may have problems:\n${ip2torWarn}\n\nCheck if locally responding: http://${localIP}:${httpPort}\n\nCheck if service is reachable over Tor:\n${toraddress}" 14 72
if [ "$?" != "1" ]; then
exit 0
fi
@ -365,7 +365,7 @@ User=sphinxrelay
Restart=always
TimeoutSec=120
RestartSec=30
StandardOutput=null
StandardOutput=journal
StandardError=journal
[Install]