diff --git a/lib/tests.sh b/lib/tests.sh index 734229e..11176c6 100644 --- a/lib/tests.sh +++ b/lib/tests.sh @@ -25,6 +25,12 @@ _STUFF_TO_RUN_BEFORE_INITIAL_SNAPSHOT() apt="LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0" # Execute the command given in argument in the container and log its results. lxc exec $LXC_NAME -t -- /bin/bash -c "$apt update; $apt install $apt_deps" | tee -a "$full_log" >/dev/null + + # Gotta generate the psql password even though apparently it's not even useful anymore these days but it otherwise trigger warnings ~_~ + if echo "$apt_deps" | grep -q postgresql + then + lxc exec $LXC_NAME -t -- /bin/bash -c "yunohost tools regen-conf postgresql" | tee -a "$full_log" >/dev/null + fi }