Dyrcona

pgdg-setup

Aug 10th, 2020
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Run me as root or via sudo to setup the PostgreSQL Community apt
  4. # repo on Debian or Ubuntu.
  5.  
  6. if [ ! -e /etc/apt/sources.list.d/pgdg.list ]; then
  7.     echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
  8.     wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
  9.     apt update
  10. fi
  11.  
  12.  
Add Comment
Please, Sign In to add comment