File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ display_info() {
325325 if [ -f " $TOKEN_FILE " ]; then
326326 echo -e " ${COLOR_GREEN} Token NPM ${COLOR_YELLOW} $TOKEN_FILE ${COLOR_RESET} "
327327 else
328- echo -e " ${COLOR_RED} Token file does not exist! ${COLOR_RESET} \n 🔖 Check ./nginx_proxy_manager_cli.sh --check-token "
329- echo -e " Generating new token..."
328+ # echo -e " ${COLOR_RED}Token file does not exist! ${COLOR_RESET}"
329+ echo -e " ${COLOR_GREEN} Generating new token... ${COLOR_RESET} \n 🔖 Check ./nginx_proxy_manager_cli.sh --check-token "
330330 generate_token
331331
332332 fi
@@ -394,7 +394,8 @@ colorize_booleanh() {
394394generate_token () {
395395 response=$( curl -s -X POST " $BASE_URL$API_ENDPOINT " \
396396 -H " Content-Type: application/json; charset=UTF-8" \
397- --data-raw " {\" identity\" :\" $API_USER \" ,\" secret\" :\" $API_PASS \" ,\" expiry\" :\" $TOKEN_EXPIRY \" }" )
397+ --data-raw " {\" identity\" :\" $API_USER \" ,\" secret\" :\" $API_PASS \" }" )
398+ # --data-raw "{\"identity\":\"$API_USER\",\"secret\":\"$API_PASS\",\"expiry\":\"$TOKEN_EXPIRY\"}")
398399
399400 token=$( echo " $response " | jq -r ' .token' )
400401 expires=$( echo " $response " | jq -r ' .expires' )
You can’t perform that action at this time.
0 commit comments