From 5c7bad84728d0f9790f7ebbabe592ad46fdafbf4 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 27 Jun 2019 03:18:08 +0200 Subject: [PATCH] Why not use the global variable here ... --- data/helpers.d/postgresql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/helpers.d/postgresql b/data/helpers.d/postgresql index 2b0a86308..3126639a6 100644 --- a/data/helpers.d/postgresql +++ b/data/helpers.d/postgresql @@ -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