#!/bin/bash

while true; do
    clear
    echo "=============================="
    echo "   🌐 GENESIS OPS TOOLKIT"
    echo "=============================="
    echo "1) Restart Mastodon + Notify"
    echo "2) Check Mount Status"
    echo "3) Restart TeamTalk"
    echo "4) Exit"
    echo "------------------------------"
    read -p "Choose an option: " choice

    case $choice in
        1)
            echo "Running Mastodon restart script..."
            /home/doc/genesis-tools/ops/restart_masto.sh
            read -p "Press Enter to continue..."
            ;;
        2)
            echo "Checking rclone mount status..."
            /home/doc/genesis-tools/ops/check_mounts.sh
            read -p "Press Enter to continue..."
            ;;
        3)
            echo "Restarting TeamTalk..."
            ssh root@teamtalk.genesishostingtechnologies.com "systemctl restart ttserver"
            echo "TeamTalk restarted."
            read -p "Press Enter to continue..."
            ;;
        4)
            echo "Goodbye."
            exit 0
            ;;
        *)
            echo "Invalid option."
            sleep 1
            ;;
    esac
done
