Explorar el Código

Show database password

Bob Mottram hace 7 años
padre
commit
43a8493038
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9
    0
      src/freedombone-controlpanel

+ 9
- 0
src/freedombone-controlpanel Ver fichero

195
             name+=("$a")
195
             name+=("$a")
196
         fi
196
         fi
197
     done
197
     done
198
+    i=$((i+1))
199
+    W+=($i "mariadb")
200
+    name+=("mariadb")
198
 
201
 
199
     selected_app_index=$(dialog --backtitle $"Freedombone Control Panel" --title $"Select App" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
202
     selected_app_index=$(dialog --backtitle $"Freedombone Control Panel" --title $"Select App" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
200
 
203
 
245
         fi
248
         fi
246
     fi
249
     fi
247
 
250
 
251
+    if [[ "${SELECTED_APP}" == 'mariadb' ]]; then
252
+        dialog --title $"MariaDB database password" \
253
+               --msgbox $"${CURR_PASSWORD}" 6 50
254
+        return
255
+    fi
256
+
248
     data=$(tempfile 2>/dev/null)
257
     data=$(tempfile 2>/dev/null)
249
     trap "rm -f $data" 0 1 2 5 15
258
     trap "rm -f $data" 0 1 2 5 15
250
     dialog --title "$titlestr" \
259
     dialog --title "$titlestr" \