mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Simplify indentation in ynh_psql_test_if_first_run
This commit is contained in:
parent
a1cee36b01
commit
2c9f1f89e0
1 changed files with 25 additions and 24 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue