Why not use the global variable here ...

This commit is contained in:
Alexandre Aubin 2019-06-27 03:18:08 +02:00
parent 6a00aac13a
commit 5c7bad8472

View file

@ -266,7 +266,7 @@ ynh_psql_test_if_first_run() {
echo "PostgreSQL is already installed, no need to create master password"
else
local pgsql="$(ynh_string_random)"
echo "$pgsql" >/etc/yunohost/psql
echo "$pgsql" >$PSQL_ROOT_PWD_FILE
if [ -e /etc/postgresql/9.4/ ]; then
local pg_hba=/etc/postgresql/9.4/main/pg_hba.conf