more vars

This commit is contained in:
Daniel Hansson 2023-10-04 14:15:23 +02:00 committed by GitHub
parent 57862cb63f
commit f03fc83c4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
lib.sh
View File

@ -6,11 +6,19 @@ true
############ Variables
# PATH & DIR
RUSTDESK_INSTALL_DIR=/var/lib/rustdesk-server
RUSTDESK_LOG_DIR=/var/log/rustdesk-server
# OS
ARCH=$(uname -m)
TITLE="RustDesk Linux installer"
# Network
WANIP4=$(curl -s -k -m 5 -4 https://api64.ipify.org)
# Whiptail menus
TITLE="RustDesk Setup - $(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]. Cancel by pressing [ESC]."
MENU_GUIDE="Navigate with the [ARROW] keys and confirm by pressing [ENTER]. Cancel by pressing [ESC]."
############ Functions