|
@@ -138,27 +138,22 @@ function hubzilla_channel_directory_server {
|
138
|
138
|
}
|
139
|
139
|
|
140
|
140
|
function configure_interactive_hubzilla {
|
|
141
|
+ W=(1 $"Set channel directory server"
|
|
142
|
+ 2 $"Renew SSL certificate")
|
|
143
|
+
|
141
|
144
|
while true
|
142
|
145
|
do
|
143
|
|
- data=$(mktemp 2>/dev/null)
|
144
|
|
- dialog --backtitle $"Freedombone Control Panel" \
|
145
|
|
- --title $"Hubzilla" \
|
146
|
|
- --radiolist $"Choose an operation:" 13 70 4 \
|
147
|
|
- 1 $"Set channel directory server" off \
|
148
|
|
- 2 $"Renew SSL certificate" off \
|
149
|
|
- 3 $"Back to main menu" on 2> "$data"
|
150
|
|
- sel=$?
|
151
|
|
- case $sel in
|
152
|
|
- 1) break;;
|
153
|
|
- 255) break;;
|
154
|
|
- esac
|
155
|
|
- case $(cat "$data") in
|
|
146
|
+ # shellcheck disable=SC2068
|
|
147
|
+ 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)
|
|
148
|
+
|
|
149
|
+ if [ ! "$selection" ]; then
|
|
150
|
+ break
|
|
151
|
+ fi
|
|
152
|
+
|
|
153
|
+ case $selection in
|
156
|
154
|
1) hubzilla_channel_directory_server;;
|
157
|
155
|
2) hubzilla_renew_cert;;
|
158
|
|
- 3) rm -f "$data"
|
159
|
|
- break;;
|
160
|
156
|
esac
|
161
|
|
- rm -f "$data"
|
162
|
157
|
done
|
163
|
158
|
}
|
164
|
159
|
|