Skip to content

Instantly share code, notes, and snippets.

@dlangille
Last active November 12, 2019 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlangille/d7d5992bf343e1bd705bc98c80de1a54 to your computer and use it in GitHub Desktop.
Save dlangille/d7d5992bf343e1bd705bc98c80de1a54 to your computer and use it in GitHub Desktop.
FreshPorts - changing the database server
$ grep pg03 /usr/local/etc/nrpe.cfg
command[check_pgsql] =/usr/local/libexec/nagios/check_pgsql -d template1 -H pg03.int.unixathome.org -l nagios -p '[redacted]' -o 'sslmode=require'
$ cd /usr/local/etc/freshports
$ sudo grep pg03 *
config.pm:$FreshPorts::Config::host = 'pg03.int.unixathome.org';
config.sh:HOST='pg03.int.unixathome.org'
$ cd /usr/local/etc/freshports
$ sudo grep pg03 *
database.php: $db = pg_connect("host=pg03.int.unixathome.org dbname=[redacted] user=[redacted] password=[redacted] sslmode=require");
fp-listen.ini:HOST = pg03.int.unixathome.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment