mirror of
https://github.com/Erreur32/nginx-proxy-manager-Bash-API.git
synced 2024-12-22 05:22:11 +01:00
ADD --info + tag 2.3.3
This commit is contained in:
parent
4e61409927
commit
fbc9b0ee91
1 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Nginx Proxy Manager CLI Script v2.3.2
|
# Nginx Proxy Manager CLI Script v2.3.3
|
||||||
# Erreur32 - July 2024
|
# Erreur32 - July 2024
|
||||||
#
|
#
|
||||||
# This script allows you to manage Nginx Proxy Manager via the API. It provides
|
# This script allows you to manage Nginx Proxy Manager via the API. It provides
|
||||||
|
@ -286,21 +286,21 @@ usage() {
|
||||||
# Display script variables info
|
# Display script variables info
|
||||||
display_info() {
|
display_info() {
|
||||||
echo -e "\n${COLOR_YELLOW}Script Variables Information:${COLOR_RESET}"
|
echo -e "\n${COLOR_YELLOW}Script Variables Information:${COLOR_RESET}"
|
||||||
echo -e " ${COLOR_GREEN}BASE_URL${COLOR_RESET} ${BASE_URL}"
|
echo -e " ${COLOR_GREEN}BASE_URL${COLOR_RESET} ${BASE_URL}"
|
||||||
echo -e " ${COLOR_GREEN}NGINX_IP${COLOR_RESET} ${NGINX_IP}"
|
echo -e " ${COLOR_GREEN}NGINX_IP${COLOR_RESET} ${NGINX_IP}"
|
||||||
echo -e " ${COLOR_GREEN}API_USER${COLOR_RESET} ${API_USER}"
|
echo -e " ${COLOR_GREEN}API_USER${COLOR_RESET} ${API_USER}"
|
||||||
echo -e " ${COLOR_GREEN}BASE_DIR${COLOR_RESET} ${BASE_DIR}"
|
echo -e " ${COLOR_GREEN}BASE_DIR${COLOR_RESET} ${BASE_DIR}"
|
||||||
echo -e " ${COLOR_GREEN}BACKUP_DIR${COLOR_RESET} ${BACKUP_DIR}"
|
echo -e " ${COLOR_GREEN}BACKUP_DIR${COLOR_RESET} ${BACKUP_DIR}"
|
||||||
|
|
||||||
if [ -d "$BACKUP_DIR" ]; then
|
if [ -d "$BACKUP_DIR" ]; then
|
||||||
backup_count=$(ls -1 "$BACKUP_DIR" | wc -l)
|
backup_count=$(ls -1 "$BACKUP_DIR" | wc -l)
|
||||||
echo -e " ${COLOR_GREEN}Nb files in backup dir:${COLOR_YELLOW} $backup_count ${COLOR_RESET}"
|
echo -e " ${COLOR_GREEN}BACKUP HOST ${COLOR_YELLOW}$backup_count ${COLOR_RESET}"
|
||||||
else
|
else
|
||||||
echo -e " ${COLOR_RED}Backup directory does not exist.${COLOR_RESET}"
|
echo -e " ${COLOR_RED}Backup directory does not exist.${COLOR_RESET}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$TOKEN_FILE" ]; then
|
if [ -f "$TOKEN_FILE" ]; then
|
||||||
echo -e " ${COLOR_GREEN}Token NPM ${COLOR_YELLOW} $TOKEN_FILE ${COLOR_RESET}"
|
echo -e " ${COLOR_GREEN}Token NPM ${COLOR_YELLOW} $TOKEN_FILE ${COLOR_RESET}"
|
||||||
else
|
else
|
||||||
echo -e " ${COLOR_RED}Token file does not exist! ${COLOR_RESET} \n Check ./nginx_proxy_manager_cli.sh --check-token "
|
echo -e " ${COLOR_RED}Token file does not exist! ${COLOR_RESET} \n Check ./nginx_proxy_manager_cli.sh --check-token "
|
||||||
echo -e " Generating new token..."
|
echo -e " Generating new token..."
|
||||||
|
|
Loading…
Reference in a new issue