mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update postgresql
This commit is contained in:
parent
c59c3fa438
commit
ba73bd03b4
1 changed files with 7 additions and 1 deletions
|
@ -276,7 +276,13 @@ ynh_psql_test_if_first_run() {
|
||||||
local pg_hba=/etc/postgresql/9.6/main/pg_hba.conf
|
local pg_hba=/etc/postgresql/9.6/main/pg_hba.conf
|
||||||
local logfile=/var/log/postgresql/postgresql-9.6-main.log
|
local logfile=/var/log/postgresql/postgresql-9.6-main.log
|
||||||
else
|
else
|
||||||
ynh_die "postgresql shoud be 9.4 or 9.6 or it could be a problem of locale see https://serverfault.com/questions/426989/postgresql-etc-postgresql-doesnt-exist"
|
if dpkg --list | grep -q "ii postgresql-9."
|
||||||
|
then
|
||||||
|
ynh_die "It looks like postgresql was not properly configured ? /etc/postgresql/9.* is missing ... Could be due to a locale issue, c.f.https://serverfault.com/questions/426989/postgresql-etc-postgresql-doesnt-exist"
|
||||||
|
else
|
||||||
|
ynh_die "postgresql shoud be 9.4 or 9.6 or "
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ynh_systemd_action --service_name=postgresql --action=start
|
ynh_systemd_action --service_name=postgresql --action=start
|
||||||
|
|
Loading…
Add table
Reference in a new issue