Simplify indentation in ynh_psql_test_if_first_run

This commit is contained in:
Alexandre Aubin 2020-04-02 23:05:54 +02:00
parent a1cee36b01
commit 2c9f1f89e0

View file

@ -265,7 +265,9 @@ ynh_psql_remove_db() {
ynh_psql_test_if_first_run() {
if [ -f "$PSQL_ROOT_PWD_FILE" ]; then
echo "PostgreSQL is already installed, no need to create master password"
else
return
fi
local psql_root_password="$(ynh_string_random)"
echo "$psql_root_password" >$PSQL_ROOT_PWD_FILE
@ -294,5 +296,4 @@ ynh_psql_test_if_first_run() {
systemctl enable postgresql
ynh_systemd_action --service_name=postgresql --action=reload
fi
}