Browse Source

with -i for postgresql user environment

unless could not change directory to "/root": Permission denied
Jonathan Dumont 6 years ago
parent
commit
117813047e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      install/hst-install-debian.sh

+ 1 - 1
install/hst-install-debian.sh

@@ -1421,7 +1421,7 @@ if [ "$postgresql" = 'yes' ]; then
     ppass=$(gen_pass)
     cp -f $HESTIA_INSTALL_DIR/postgresql/pg_hba.conf /etc/postgresql/*/main/
     systemctl restart postgresql
-    sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '$ppass'"
+    sudo -iu postgres psql -c "ALTER USER postgres WITH PASSWORD '$ppass'"
 
     # Configuring phpPgAdmin
     if [ "$apache" = 'yes' ]; then