From f4c75b5299e42a505020bafaa3c44435e8ce5e4b Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Wed, 20 Sep 2023 17:20:48 +0800 Subject: [PATCH] systemd fixed --- systemd/send_credentials.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/systemd/send_credentials.sh b/systemd/send_credentials.sh index ad5a5d7b..851389f0 100644 --- a/systemd/send_credentials.sh +++ b/systemd/send_credentials.sh @@ -15,8 +15,7 @@ while true; do docker cp websoft9-deployment:/var/websoft9/credential /data/websoft9/credential_deployment content=$(cat /data/websoft9/credential_deployment) username="admin" - password=$(echo "$content" | awk -F':' '{print $2}') - json="{\"username\":\"$username\",\"password\":\"$password\"}" + json="{\"username\":\"$username\",\"password\":\"$content\"}" echo "$json" > /data/websoft9/credential_deployment docker cp /data/websoft9/credential_deployment websoft9-apphub:/websoft9/credentials