Hubzilla configuration menu style
This commit is contained in:
parent
2cbcf7b143
commit
0b6489bc45
|
@ -138,27 +138,22 @@ function hubzilla_channel_directory_server {
|
||||||
}
|
}
|
||||||
|
|
||||||
function configure_interactive_hubzilla {
|
function configure_interactive_hubzilla {
|
||||||
|
W=(1 $"Set channel directory server"
|
||||||
|
2 $"Renew SSL certificate")
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
data=$(mktemp 2>/dev/null)
|
# shellcheck disable=SC2068
|
||||||
dialog --backtitle $"Freedombone Control Panel" \
|
selection=$(dialog --backtitle $"Freedombone Administrator Control Panel" --title $"Hubzilla" --menu $"Choose an operation, or ESC to exit:" 10 60 2 "${W[@]}" 3>&2 2>&1 1>&3)
|
||||||
--title $"Hubzilla" \
|
|
||||||
--radiolist $"Choose an operation:" 13 70 4 \
|
if [ ! "$selection" ]; then
|
||||||
1 $"Set channel directory server" off \
|
break
|
||||||
2 $"Renew SSL certificate" off \
|
fi
|
||||||
3 $"Back to main menu" on 2> "$data"
|
|
||||||
sel=$?
|
case $selection in
|
||||||
case $sel in
|
|
||||||
1) break;;
|
|
||||||
255) break;;
|
|
||||||
esac
|
|
||||||
case $(cat "$data") in
|
|
||||||
1) hubzilla_channel_directory_server;;
|
1) hubzilla_channel_directory_server;;
|
||||||
2) hubzilla_renew_cert;;
|
2) hubzilla_renew_cert;;
|
||||||
3) rm -f "$data"
|
|
||||||
break;;
|
|
||||||
esac
|
esac
|
||||||
rm -f "$data"
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue