standardize checklist-instructions and menu-instructions (#1410)
This commit is contained in:
Родитель
cb9a4a4400
Коммит
e255051d96
|
@ -18,7 +18,7 @@ debug_mode
|
|||
root_check
|
||||
|
||||
# Install Apps
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Which apps do you want to install?\n\nAutomatically configure and install selected apps\nSelect by pressing the spacebar\nYou can view this menu later by running 'sudo bash $SCRIPTS/menu.sh'" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Which apps do you want to install?\n\nAutomatically configure and install selected apps\n$CHECKLIST_GUIDE\n$MENU_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"Fail2ban" "(Extra Bruteforce protection)" OFF \
|
||||
"Adminer" "(PostgreSQL GUI)" OFF \
|
||||
"Netdata" "(Real-time server monitoring)" OFF \
|
||||
|
|
|
@ -97,7 +97,7 @@ then
|
|||
|
||||
# Choose file formats fo the case when imagick is installed.
|
||||
# for additional previews please look at the nextcloud documentation. But these probably won't work.
|
||||
choice=$(whiptail --title "$TITLE - Choose file formats" --checklist "Now you can choose for which file formats you would like to generate previews for\nSelect or unselect by pressing the spacebar" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE - Choose file formats" --checklist "Now you can choose for which file formats you would like to generate previews for\n$CHECKLIST_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"PNG" "" ON \
|
||||
"JPEG" "" ON \
|
||||
"GIF" "" ON \
|
||||
|
@ -160,7 +160,7 @@ else
|
|||
fi
|
||||
# Choose file formats fo the case when imagick is not installed.
|
||||
# for additional previews please look at the nextcloud documentation. But these probably won't work.
|
||||
choice=$(whiptail --title "$TITLE - Choose file formats" --checklist "Now you can choose for which file formats you would like to generate previews for\nSelect or unselect by pressing the spacebar" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE - Choose file formats" --checklist "Now you can choose for which file formats you would like to generate previews for\n$CHECKLIST_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"PNG" "" ON \
|
||||
"JPEG" "" ON \
|
||||
"GIF" "" ON \
|
||||
|
|
|
@ -217,7 +217,7 @@ then
|
|||
return
|
||||
fi
|
||||
|
||||
args=(whiptail --title "$TITLE - $SUBTITLE" --checklist "This option let you mount SMB-shares to connect to network-shares from the host-computer or other machines in the local network.\nChoose which one you want to mount.\nSelect or unselect by pressing the spacebar" "$WT_HEIGHT" "$WT_WIDTH" 4)
|
||||
args=(whiptail --title "$TITLE - $SUBTITLE" --checklist "This option let you mount SMB-shares to connect to network-shares from the host-computer or other machines in the local network.\nChoose which one you want to mount.\n$CHECKLIST_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4)
|
||||
count=1
|
||||
|
||||
# Find out which SMB-shares are available
|
||||
|
@ -264,7 +264,7 @@ then
|
|||
fi
|
||||
|
||||
# Find out which SMB-shares are available
|
||||
args=(whiptail --title "$TITLE - $SUBTITLE" --checklist "This option let you show detailed information about your SMB-shares.\nChoose which one you want to see.\nSelect or unselect by pressing the spacebar" "$WT_HEIGHT" "$WT_WIDTH" 4)
|
||||
args=(whiptail --title "$TITLE - $SUBTITLE" --checklist "This option let you show detailed information about your SMB-shares.\nChoose which one you want to see.\n$CHECKLIST_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4)
|
||||
count=1
|
||||
while [ $count -le $MAX_COUNT ]
|
||||
do
|
||||
|
@ -362,7 +362,7 @@ else
|
|||
fi
|
||||
|
||||
# Let the user choose which entries he wants to change
|
||||
choice=$(whiptail --title "$TITLE - $SUBTITLE" --checklist "$fstab_entry\n$old_credentials\nChoose which option you want to change.\nSelect or unselect by pressing the spacebar" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE - $SUBTITLE" --checklist "$fstab_entry\n$old_credentials\nChoose which option you want to change.\n$CHECKLIST_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"Password" "(change the password of the SMB-user)" OFF \
|
||||
"Username" "(change the username of the SMB-user)" OFF \
|
||||
"Share" "(change the SMB-share to use the same mount directory)" OFF 3>&1 1>&2 2>&3)
|
||||
|
@ -497,7 +497,7 @@ then
|
|||
fi
|
||||
|
||||
# Find out which SMB-shares are available
|
||||
args=(whiptail --title "$TITLE - $SUBTITLE" --checklist "This option let you unmount SMB-shares to disconnect network-shares from the host-computer or other machines in the local network.\nChoose what you want to do.\nSelect or unselect by pressing the spacebar" "$WT_HEIGHT" "$WT_WIDTH" 4)
|
||||
args=(whiptail --title "$TITLE - $SUBTITLE" --checklist "This option let you unmount SMB-shares to disconnect network-shares from the host-computer or other machines in the local network.\nChoose what you want to do.\n$CHECKLIST_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4)
|
||||
count=1
|
||||
while [ $count -le $MAX_COUNT ]
|
||||
do
|
||||
|
@ -540,7 +540,7 @@ then
|
|||
fi
|
||||
|
||||
# Check which SMB-shares are available
|
||||
args=(whiptail --title "$TITLE - $SUBTITLE" --checklist "This option let you delete SMB-shares to disconnect and remove network-shares from the Nextcloud VM.\nChoose what you want to do.\nSelect or unselect by pressing the spacebar" "$WT_HEIGHT" "$WT_WIDTH" 4)
|
||||
args=(whiptail --title "$TITLE - $SUBTITLE" --checklist "This option let you delete SMB-shares to disconnect and remove network-shares from the Nextcloud VM.\nChoose what you want to do.\n$CHECKLIST_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4)
|
||||
count=1
|
||||
while [ $count -le $MAX_COUNT ]
|
||||
do
|
||||
|
|
5
lib.sh
5
lib.sh
|
@ -73,9 +73,12 @@ then
|
|||
fi
|
||||
}
|
||||
use_global_systemd_dns
|
||||
# Common
|
||||
|
||||
# Whiptails
|
||||
TITLE="Nextcloud VM - $(date +%Y)"
|
||||
[ -n "$SCRIPT_NAME" ] && TITLE+=" - $SCRIPT_NAME"
|
||||
CHECKLIST_GUIDE="Navigate with the [ARROW] keys and (de)select with the [SPACE] key. Confirm by pressing [ENTER]"
|
||||
MENU_GUIDE="You can view this menu later by running 'sudo bash $SCRIPTS/menu.sh'"
|
||||
# Repo
|
||||
GITHUB_REPO="https://raw.githubusercontent.com/nextcloud/vm/master"
|
||||
STATIC="$GITHUB_REPO/static"
|
||||
|
|
|
@ -18,7 +18,7 @@ debug_mode
|
|||
root_check
|
||||
|
||||
# Install Apps
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Which apps do you want to install?\n\nAutomatically configure and install selected apps\nSelect by pressing the spacebar\nYou can view this menu later by running 'sudo bash $SCRIPTS/menu.sh'" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Which apps do you want to install?\n\nAutomatically configure and install selected apps\n$CHECKLIST_GUIDE\n$MENU_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"Documentserver" "(OnlyOffice or Collabora - Docker or Integrated)" OFF \
|
||||
"Bitwarden" "(External password manager)" OFF \
|
||||
"Fail2ban " "(Extra Bruteforce protection)" OFF \
|
||||
|
|
|
@ -17,7 +17,7 @@ debug_mode
|
|||
# Must be root
|
||||
root_check
|
||||
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Automatically configure and install the Bitwarden or configure some aspects of it.\nSelect by pressing the spacebar\nYou can view this menu later by running 'sudo bash $SCRIPTS/menu.sh'" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Automatically configure and install the Bitwarden or configure some aspects of it.\n$CHECKLIST_GUIDE\n$MENU_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"Bitwarden " "(External password manager [4GB RAM] - subdomain required)" OFF \
|
||||
"Bitwarden Registration" "(Enable or disable public user registration for Bitwarden)" OFF \
|
||||
"Bitwarden Mail-Configuration" "(Configure the mailserver settings for Bitwarden)" OFF \
|
||||
|
|
|
@ -17,7 +17,7 @@ debug_mode
|
|||
# Must be root
|
||||
root_check
|
||||
|
||||
choice=$(whiptail --title "$TITLE" --menu "Which Documentserver do you want to install?\n\nAutomatically configure and install the selected Documentserver.\nYou can view this menu later by running 'sudo bash $SCRIPTS/menu.sh'" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE" --menu "Which Documentserver do you want to install?\n\nAutomatically configure and install the selected Documentserver.\n$MENU_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"Collabora (Docker)" "(Online editing - Extra Subdomain required)" \
|
||||
"Collabora (Integrated)" "(Online editing - No Subdomain required)" \
|
||||
"OnlyOffice (Docker)" "(Online editing - Extra Subdomain required)" \
|
||||
|
|
|
@ -18,7 +18,7 @@ debug_mode
|
|||
root_check
|
||||
|
||||
# Main menu
|
||||
choice=$(whiptail --title "$TITLE" --menu "Choose what you want to do.\nYou can view this menu later by running 'sudo bash $SCRIPTS/menu.sh" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE" --menu "Choose what you want to do.\n$MENU_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"Additional Apps" "(Choose which apps to install)" \
|
||||
"Nextcloud Configuration" "(Choose between available Nextcloud configurations)" \
|
||||
"Server Configuration" "(Choose between available server configurations)" \
|
||||
|
|
|
@ -19,7 +19,7 @@ debug_mode
|
|||
root_check
|
||||
|
||||
# Configure Nextcloud
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Which settings do you want to configure?\nSelect by pressing the spacebar\nYou can view this menu later by running 'sudo bash $SCRIPTS/menu.sh'" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Which settings do you want to configure?\n$CHECKLIST_GUIDE\n$MENU_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"CookieLifetime" "(Configure forced logout timeout for users using the web GUI)" OFF \
|
||||
"Share-folder" "(Shares from other users will appear in a folder named 'Shared')" OFF \
|
||||
"Disable workspaces" "(disable top notes in GUI)" OFF \
|
||||
|
|
|
@ -33,7 +33,7 @@ debug_mode
|
|||
root_check
|
||||
|
||||
# Server configurations
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Choose what you want to configure\nSelect by pressing the spacebar\nYou can view this menu later by running 'sudo bash $SCRIPTS/menu.sh'" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Choose what you want to configure\n$CHECKLIST_GUIDE\n$MENU_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"Activate TLS" "(Enable HTTPS with Let's Encrypt)" ON \
|
||||
"Security" "(Add extra security based on this http://goo.gl/gEJHi7)" OFF \
|
||||
"Static IP" "(Set static IP in Ubuntu with netplan.io)" OFF \
|
||||
|
|
|
@ -696,7 +696,7 @@ a2ensite "$HTTP_CONF"
|
|||
a2dissite default-ssl
|
||||
restart_webserver
|
||||
|
||||
choice=$(whiptail --title "$TITLE - Install apps or software" --checklist "Automatically configure and install selected apps or software\nDeselect by pressing the spacebar" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE - Install apps or software" --checklist "Automatically configure and install selected apps or software\n$CHECKLIST_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"Calendar" "" ON \
|
||||
"Contacts" "" ON \
|
||||
"IssueTemplate" "" ON \
|
||||
|
|
|
@ -18,7 +18,7 @@ debug_mode
|
|||
root_check
|
||||
|
||||
# Main menu
|
||||
choice=$(whiptail --title "$TITLE" --menu "Choose what you want to do.\nYou can view this menu later by running 'sudo bash $SCRIPTS/menu.sh" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE" --menu "Choose what you want to do.\n$MENU_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"Additional Apps" "(Choose which apps to install)" \
|
||||
"Nextcloud Configuration" "(Choose between available Nextcloud configurations)" \
|
||||
"Server Configuration" "(Choose between available server configurations)" \
|
||||
|
|
|
@ -19,7 +19,7 @@ debug_mode
|
|||
root_check
|
||||
|
||||
# Configure Nextcloud
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Which settings do you want to configure?\nSelect by pressing the spacebar\nYou can view this menu later by running 'sudo bash $SCRIPTS/menu.sh'" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Which settings do you want to configure?\n$CHECKLIST_GUIDE\n$MENU_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"CookieLifetime" "(Configure forced logout timeout for users using the web GUI)" OFF \
|
||||
"Share-folder" "(Shares from other users will appear in a folder named 'Shared')" OFF \
|
||||
"Disable workspaces" "(disable top notes in GUI)" OFF \
|
||||
|
|
|
@ -33,7 +33,7 @@ debug_mode
|
|||
root_check
|
||||
|
||||
# Server configurations
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Choose what you want to configure\nSelect by pressing the spacebar\nYou can view this menu later by running 'sudo bash $SCRIPTS/menu.sh'" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
choice=$(whiptail --title "$TITLE" --checklist "Choose what you want to configure\n$CHECKLIST_GUIDE\n$MENU_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
|
||||
"Activate TLS" "(Enable HTTPS with Let's Encrypt)" ON \
|
||||
"Security" "(Add extra security based on this http://goo.gl/gEJHi7)" OFF \
|
||||
"Static IP" "(Set static IP in Ubuntu with netplan.io)" OFF \
|
||||
|
|
Загрузка…
Ссылка в новой задаче