[type/__postgres_extension] Include postgres_user explorer from __postgres_conf

This commit is contained in:
Dennis Camera 2021-04-15 16:55:11 +02:00
parent beb8da6d5f
commit 3cf93249c3
2 changed files with 2 additions and 12 deletions

View file

@ -0,0 +1 @@
../../__postgres_conf/explorer/postgres_user

View file

@ -22,18 +22,7 @@
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
#
case "$(cat "${__global}/explorer/os")"
in
netbsd)
postgres_user='pgsql'
;;
openbsd)
postgres_user='_postgresql'
;;
*)
postgres_user='postgres'
;;
esac
postgres_user=$(cat "${__object:?}/explorer/postgres_user")
dbname=$( echo "$__object_id" | cut -d":" -f1 )