From 5bcaf91f8c96a85f167140ab8dc4d263982c55d0 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sun, 27 Sep 2015 23:56:22 +0200 Subject: [PATCH] [fix] su instead of sudo --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 25f031e..2eb2073 100644 --- a/scripts/install +++ b/scripts/install @@ -38,7 +38,7 @@ sed -i "s@NAMETOCHANGE@noalyss@g" ../conf/php-fpm.conf db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p') -sudo -i -u postgres -c "echo \"$db_pwd\n$db_pwd\" | createuser -P -S -R --createdb noalyss" +su postgres -c "echo \"$db_pwd\n$db_pwd\" | createuser -P -S -R --createdb noalyss" sed -i "s@DATABASE_PASSWORD@$db_pwd@g" ../conf/noalyss.conf finalphpconf=/etc/php5/fpm/pool.d/noalyss.conf