mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-27 20:06:52 +00:00
Update menu
This commit is contained in:
parent
371e8a9570
commit
f2637aad46
4
menu
4
menu
@ -49,9 +49,11 @@ fi
|
|||||||
|
|
||||||
# Initialize language configuration
|
# Initialize language configuration
|
||||||
initialize_config() {
|
initialize_config() {
|
||||||
show_proxmenux_logo
|
|
||||||
# Check if config file exists and has language field
|
# Check if config file exists and has language field
|
||||||
if [ ! -f "$CONFIG_FILE" ] || [ -z "$(jq -r '.language // empty' "$CONFIG_FILE")" ]; then
|
if [ ! -f "$CONFIG_FILE" ] || [ -z "$(jq -r '.language // empty' "$CONFIG_FILE")" ]; then
|
||||||
|
show_proxmenux_logo
|
||||||
|
sleep 2
|
||||||
LANGUAGE=$(whiptail --title "$(translate "Select Language")" --menu "$(translate "Choose a language for the menu:")" 20 60 12 \
|
LANGUAGE=$(whiptail --title "$(translate "Select Language")" --menu "$(translate "Choose a language for the menu:")" 20 60 12 \
|
||||||
"en" "$(translate "English (Recommended)")" \
|
"en" "$(translate "English (Recommended)")" \
|
||||||
"es" "$(translate "Spanish")" \
|
"es" "$(translate "Spanish")" \
|
||||||
|
@ -735,7 +735,6 @@ packages_list=(
|
|||||||
progress=$((i * 10))
|
progress=$((i * 10))
|
||||||
tput cup $((row + 3)) 9
|
tput cup $((row + 3)) 9
|
||||||
printf "[%-50s] %3d%%" "$(printf "#%.0s" $(seq 1 $((progress/2))))" "$progress"
|
printf "[%-50s] %3d%%" "$(printf "#%.0s" $(seq 1 $((progress/2))))" "$progress"
|
||||||
sleep 0.2
|
|
||||||
done
|
done
|
||||||
|
|
||||||
/usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::='--force-confdef' install "$package" > /dev/null 2>&1
|
/usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::='--force-confdef' install "$package" > /dev/null 2>&1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user