Skip to content

Commit b33882e

Browse files
authored
Merge pull request hestiacp#534 from JDmnT/patch-1
with -i for postgresql user environment
2 parents f437a32 + a08af21 commit b33882e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ if [ "$postgresql" = 'yes' ]; then
14211421
ppass=$(gen_pass)
14221422
cp -f $HESTIA_INSTALL_DIR/postgresql/pg_hba.conf /etc/postgresql/*/main/
14231423
systemctl restart postgresql
1424-
sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '$ppass'"
1424+
sudo -iu postgres psql -c "ALTER USER postgres WITH PASSWORD '$ppass'"
14251425

14261426
# Configuring phpPgAdmin
14271427
if [ "$apache" = 'yes' ]; then

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ if [ "$postgresql" = 'yes' ]; then
13751375
ppass=$(gen_pass)
13761376
cp -f $HESTIA_INSTALL_DIR/postgresql/pg_hba.conf /etc/postgresql/*/main/
13771377
systemctl restart postgresql
1378-
sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '$ppass'"
1378+
sudo -iu postgres psql -c "ALTER USER postgres WITH PASSWORD '$ppass'"
13791379

13801380
# Configuring phpPgAdmin
13811381
if [ "$apache" = 'yes' ]; then

0 commit comments

Comments
 (0)