forked from ungleich-public/cdist
[type/__postgres_extension] Include postgres_user explorer from __postgres_conf
This commit is contained in:
parent
beb8da6d5f
commit
3cf93249c3
2 changed files with 2 additions and 12 deletions
1
cdist/conf/type/__postgres_extension/explorer/postgres_user
Symbolic link
1
cdist/conf/type/__postgres_extension/explorer/postgres_user
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../__postgres_conf/explorer/postgres_user
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue