Friendica configuration menu style
This commit is contained in:
parent
0b6489bc45
commit
54ec3b2dda
|
@ -152,31 +152,26 @@ function friendica_allow_registrations {
|
||||||
}
|
}
|
||||||
|
|
||||||
function configure_interactive_friendica {
|
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
|
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 $"Friendica" --menu $"Choose an operation, or ESC to exit:" 14 60 4 "${W[@]}" 3>&2 2>&1 1>&3)
|
||||||
--title $"Friendica" \
|
|
||||||
--radiolist $"Choose an operation:" 15 70 6 \
|
if [ ! "$selection" ]; then
|
||||||
1 $"Set channel directory server" off \
|
break
|
||||||
2 $"Renew SSL certificate" off \
|
fi
|
||||||
3 $"Close new account registrations" off \
|
|
||||||
4 $"Allow new account registrations" off \
|
case $selection in
|
||||||
5 $"Back to main menu" on 2> "$data"
|
|
||||||
sel=$?
|
|
||||||
case $sel in
|
|
||||||
1) break;;
|
|
||||||
255) break;;
|
|
||||||
esac
|
|
||||||
case $(cat "$data") in
|
|
||||||
1) friendica_channel_directory_server;;
|
1) friendica_channel_directory_server;;
|
||||||
2) friendica_renew_cert;;
|
2) friendica_renew_cert;;
|
||||||
3) friendica_close_registrations;;
|
3) friendica_close_registrations;;
|
||||||
4) friendica_allow_registrations;;
|
4) friendica_allow_registrations;;
|
||||||
5) rm -f "$data"
|
|
||||||
break;;
|
|
||||||
esac
|
esac
|
||||||
rm -f "$data"
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue