Skip to content

Commit

Permalink
Update send_credentials.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
chendelin1982 authored Dec 6, 2024
1 parent c905d1d commit 2d9362a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions systemd/script/send_credentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ for i in ${!containers[@]}; do
((counter++))
done
if [[ $success == true ]]; then
echo "Successfully retrieved credentials for $container"
echo "Successfully get credentials from $container"
else
echo "Failed to retrieve credentials for $container after $max_retries attempts"
echo "Failed to get credentials from $container after $max_retries attempts"
fi
done

Expand All @@ -68,10 +68,10 @@ for ((i=0; i<$length; i++)); do
container=${containers[$i]}
section=${sections[$i]}
if [[ -n ${passwords[$container]} ]]; then
echo "$container start to set password"
echo "Sync credentials of $container to websoft9-apphub"
docker exec -i websoft9-apphub apphub setconfig --section $section --key user_name --value ${usernames[$container]}
docker exec -i websoft9-apphub apphub setconfig --section $section --key user_pwd --value ${passwords[$container]}
else
echo "Password for $container is not set or empty. Skipping..."
echo "Password of $container is not set or empty. Skipping..."
fi
done

0 comments on commit 2d9362a

Please sign in to comment.