Merge pull request #157 from noon92/working

tiny fix for tc2-bbs installer
This commit is contained in:
noon92 2025-01-07 22:51:28 +02:00 • committed by GitHub
commit dfb3ac2e0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View file

@ -36,11 +36,8 @@ wizard() {
if [ $? -eq 0 ]; then #unless cancel/no
newurl=$(dialog --title "Meshtastic URL" --cancel-label "Skip" --inputbox "New Meshtasticd URL (SHIFT+INS to paste):" 8 50 3>&1 1>&2 2>&3)
if [ -n "$newurl" ]; then #if a URL was entered
dialog --title "$title" --yesno "New Meshtasticd URL:\n$newurl\n\nConfirm?" 15 60
if [ $? -eq 0 ]; then #unless cancel/no
femto-meshtasticd-config.sh -q "$newurl"
pause
fi
femto-meshtasticd-config.sh -q "$newurl"
pause
fi
femto-config -l

View file

@ -102,6 +102,13 @@ tc2_bbs() { # Install TC²BBS
cp mesh-bbs.service /etc/systemd/system/
sudo systemctl enable mesh-bbs.service
sudo systemctl restart mesh-bbs.service
# for whatever reason, this is necessary
sleep 5
sudo systemctl restart mesh-bbs
echo -e "\nPress any key to continue..."
read -n 1 -s -r
dialog --title "$software" --msgbox "\nInstallation complete." 8 50
}