From fdf2f55c48d319b0f8105249bc01132bbda6c249 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Sat, 17 Jun 2023 10:45:17 +0800 Subject: [PATCH] token get --- install/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/install.sh b/install/install.sh index feaf969a..8be2446a 100644 --- a/install/install.sh +++ b/install/install.sh @@ -414,7 +414,7 @@ sleep 25 echo "edit nginxproxymanager password..." login_data=$(curl -X POST -H "Content-Type: application/json" -d '{"identity":"admin@example.com","scope":"user", "secret":"changeme"}' http://127.0.0.1:9092/api/tokens) sleep 3 -token=echo $login_data | grep -Po '(?<="token":")[^"]*' +token=$(echo $login_data | grep -Po '(?<="token":")[^"]*') #token=$(echo $login_data | jq -r '.token') new_password=$(docker run --name pwgen backplane/pwgen 15)! docker rm -f pwgen