improved radmin

pull/1/head
Tom Early 3 years ago
parent a6e07d27c2
commit ae1e686e8f

@ -135,10 +135,10 @@ One at a time, *dbutil* can work with any of the three DATABASEs. It can read ei
After you have written your configutation files, you can install your system: After you have written your configutation files, you can install your system:
```bash ```bash
./radmin <PATH TO INI FILE> ./radmin
``` ```
Use can use this interactive shell script to install and uninstall your system. This can also perform other tasks like restarting the reflector or transcoder process, or be used to view the reflector or transcoder log in real time. You can use this interactive shell script to install and uninstall your system. This can also perform other tasks like restarting the reflector or transcoder process, or be used to view the reflector or transcoder log in real time.
### Stoping and starting the services manually ### Stoping and starting the services manually

@ -76,8 +76,14 @@ if [[ $# -eq 1 ]]; then
exit 1 exit 1
fi fi
else else
echo "Usage: ./radmin inifilename" if [[ -e reflector/urfd.ini ]]; then
callsign=$(awk '$1 == "Callsign"{print $3}' reflector/urfd.ini)
tcaddress=$(awk '$1 == "Transcoder"{print $3}' reflector/urfd.ini)
else
echo "ERROR: could not find reflector/urfd.ini! You'll have to specify it."
echo "Usage: ./radmin PATH-TO-INI-FILE"
exit 1 exit 1
fi
fi fi
key='x' key='x'
# main loop # main loop
@ -91,11 +97,10 @@ do
ps -aux | grep -e urfd -e tcd | grep -v grep | grep -v radmin ps -aux | grep -e urfd -e tcd | grep -v grep | grep -v radmin
fi fi
echo echo
echo " Reflector Administration, Version #230221" echo " Reflector Administration, Version #230308"
echo echo
git status | head -1 git status | head -1
echo echo
echo "ls : List the configuration file"
if [ -e $urfserv ]; then if [ -e $urfserv ]; then
if [ -e $urfserv ]; then if [ -e $urfserv ]; then
echo "us : Uninstall the URF reflector" echo "us : Uninstall the URF reflector"
@ -126,11 +131,7 @@ do
echo echo
read -p "Please input <key> <value> - omit value to toggle a true/false : " key value garbage read -p "Please input <key> <value> - omit value to toggle a true/false : " key value garbage
if [[ "$key" == ls* ]]; then if [[ "$key" == us* ]]; then
cat reflector.cfg;
echo
read -p "<Enter> to return to main menu: " ans
elif [[ "$key" == us* ]]; then
if [ -e $urfserv ]; then if [ -e $urfserv ]; then
UninstallReflector UninstallReflector
fi fi
@ -138,10 +139,7 @@ do
if [ -e reflector/urfd ] && [ ! -e $urfserv ]; then if [ -e reflector/urfd ] && [ ! -e $urfserv ]; then
InstallReflector InstallReflector
fi fi
elif [[ "$key" == rr* ]]; then elif [[ "$key" == rr* ]] && [ -e $urfserv ]; then sudo systemctl restart urfd
if [ -e $urfserv ]; then
sudo systemctl restart urfd
fi
elif [[ "$key" == tr* ]] && [ -e $tcdserv ]; then sudo systemctl restart tcd elif [[ "$key" == tr* ]] && [ -e $tcdserv ]; then sudo systemctl restart tcd
elif [[ "$key" == tl* ]] && [ -e $tcdserv ]; then sudo journalctl -u tcd -f elif [[ "$key" == tl* ]] && [ -e $tcdserv ]; then sudo journalctl -u tcd -f
elif [[ "$key" == rl* ]] && [ -e $urfserv ]; then sudo journalctl -u urfd -f elif [[ "$key" == rl* ]] && [ -e $urfserv ]; then sudo journalctl -u urfd -f

Loading…
Cancel
Save

Powered by TurnKey Linux.