Replace hard-corded value with constant defined above

This commit is contained in:
Alexandre Aubin 2019-03-04 22:54:02 +01:00 committed by GitHub
parent abc091911c
commit e3dfd63481
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,7 +244,7 @@ ynh_psql_remove_db() {
#
# usage: ynh_psql_test_if_first_run
ynh_psql_test_if_first_run() {
if [ -f /etc/yunohost/psql ]; then
if [ -f "$PSQL_ROOT_PWD_FILE" ]; then
echo "PostgreSQL is already installed, no need to create master password"
else
local pgsql="$(ynh_string_random)"