This commit is contained in:
qiaofeng1227 2023-10-24 12:14:30 +08:00
parent aede9231b7
commit 5c74768fab
2 changed files with 8 additions and 3 deletions

View File

@ -60,8 +60,13 @@ set -e # Stop ignoring errors
length=${#containers[@]}
for ((i=0; i<$length; i++)); do
container=${containers[$i]}
section=${sections[$i]}
echo "$container:"
docker exec -i websoft9-apphub apphub setconfig --section $section --key user_pwd --value ${passwords[$container]}
if [[ -n ${passwords[$container]} ]]; then
echo "$container start to set password"
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..."
fi
done

View File

@ -1,5 +1,5 @@
{
"version": "0.8.26-rc82",
"version": "0.8.26-rc83",
"plugins": {
"portainer": "0.0.7",
"nginx": "0.0.5",