Skip to content
Snippets Groups Projects
Commit 54ec3b2d authored by Bob Mottram's avatar Bob Mottram
Browse files

Friendica configuration menu style

parent 0b6489bc
No related branches found
No related tags found
No related merge requests found
......@@ -152,31 +152,26 @@ function friendica_allow_registrations {
}
function configure_interactive_friendica {
W=(1 $"Set channel directory server"
2 $"Renew SSL certificate"
3 $"Close new account registrations"
4 $"Allow new account registrations")
while true
do
data=$(mktemp 2>/dev/null)
dialog --backtitle $"Freedombone Control Panel" \
--title $"Friendica" \
--radiolist $"Choose an operation:" 15 70 6 \
1 $"Set channel directory server" off \
2 $"Renew SSL certificate" off \
3 $"Close new account registrations" off \
4 $"Allow new account registrations" off \
5 $"Back to main menu" on 2> "$data"
sel=$?
case $sel in
1) break;;
255) break;;
esac
case $(cat "$data") in
# shellcheck disable=SC2068
selection=$(dialog --backtitle $"Freedombone Administrator Control Panel" --title $"Friendica" --menu $"Choose an operation, or ESC to exit:" 14 60 4 "${W[@]}" 3>&2 2>&1 1>&3)
if [ ! "$selection" ]; then
break
fi
case $selection in
1) friendica_channel_directory_server;;
2) friendica_renew_cert;;
3) friendica_close_registrations;;
4) friendica_allow_registrations;;
5) rm -f "$data"
break;;
esac
rm -f "$data"
done
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment