Skip to content

Commit 1178130

Browse files
authored
with -i for postgresql user environment
unless could not change directory to "/root": Permission denied
1 parent f437a32 commit 1178130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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

0 commit comments

Comments
 (0)