mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Make sure to generate the psql password to prevent warnings
This commit is contained in:
parent
ac8108a352
commit
9627a8c0a3
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue