mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
thunderhub: start service after install
This commit is contained in:
parent
df3439dee7
commit
18c54da5ca
1 changed files with 15 additions and 5 deletions
|
@ -638,12 +638,22 @@ fi
|
||||||
choice="off"; check=$(echo "${CHOICES}" | grep -c "t")
|
choice="off"; check=$(echo "${CHOICES}" | grep -c "t")
|
||||||
if [ ${check} -eq 1 ]; then choice="on"; fi
|
if [ ${check} -eq 1 ]; then choice="on"; fi
|
||||||
if [ "${thunderhub}" != "${choice}" ]; then
|
if [ "${thunderhub}" != "${choice}" ]; then
|
||||||
echo " ThunderHub setting changed .."
|
echo "ThunderHub Setting changed .."
|
||||||
anychange=1
|
anychange=1
|
||||||
sudo -u admin /home/admin/config.scripts/bonus.thunderhub.sh ${choice}
|
/home/admin/config.scripts/bonus.thunderhub.sh ${choice}
|
||||||
source /mnt/hdd/raspiblitz.conf
|
errorOnInstall=$?
|
||||||
if [ "${thunderhub}" = "on" ]; then
|
if [ "${choice}" = "on" ]; then
|
||||||
sudo -u admin /home/admin/config.scripts/bonus.thunderhub.sh menu
|
if [ ${errorOnInstall} -eq 0 ]; then
|
||||||
|
sudo systemctl start thunderhub
|
||||||
|
echo "waiting 10 secs .."
|
||||||
|
sleep 10
|
||||||
|
/home/admin/config.scripts/bonus.thunderhub.sh menu
|
||||||
|
else
|
||||||
|
l1="!!! FAIL on ThunderHub install !!!"
|
||||||
|
l2="Try manual install on terminal after reboot with:"
|
||||||
|
l3="/home/admin/config.scripts/bonus.thunderhub.sh on"
|
||||||
|
dialog --title 'FAIL' --msgbox "${l1}\n${l2}\n${l3}" 7 65
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "ThunderHub setting unchanged."
|
echo "ThunderHub setting unchanged."
|
||||||
|
|
Loading…
Add table
Reference in a new issue