mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-23 09:20:20 +08:00
portainer password to json
This commit is contained in:
parent
69b6bef2b0
commit
557afe14f2
@ -10,6 +10,11 @@ while true; do
|
|||||||
docker cp /data/websoft9/credential_git websoft9-apphub:/websoft9/credentials
|
docker cp /data/websoft9/credential_git websoft9-apphub:/websoft9/credentials
|
||||||
|
|
||||||
docker cp websoft9-deployment:/var/websoft9/credential /data/websoft9/credential_deployment
|
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\"}"
|
||||||
|
echo "$json" > /data/websoft9/credential_deployment
|
||||||
docker cp /data/websoft9/credential_deployment websoft9-apphub:/websoft9/credentials
|
docker cp /data/websoft9/credential_deployment websoft9-apphub:/websoft9/credentials
|
||||||
|
|
||||||
docker cp websoft9-proxy:/var/websoft9/credential /data/websoft9/credential_proxy
|
docker cp websoft9-proxy:/var/websoft9/credential /data/websoft9/credential_proxy
|
||||||
|
Loading…
Reference in New Issue
Block a user