Skip to content

Instantly share code, notes, and snippets.

#! /bin/bash
# directory to save backups in, must be rwx by postgres user
BASE_DIR="/var/backups/postgres"
YMD=$(date "+%Y-%m-%d")
DIR="$BASE_DIR/$YMD"
mkdir -p $DIR
cd $DIR
# make database backup
@roma86
roma86 / Add self signed sertificate to boot2docker
Last active March 1, 2018 12:58 — forked from irgeek/bootlocal.sh
Add self signed sertificate to boot2docker
##This script help solve boot2docker self signed certificates issue
**Start here:**
irgeek [shared his solution](https://github.com/boot2docker/boot2docker/issues/347#issuecomment-70950789)
I had to solve this for a second time today as I restarted the VM without realising the way I did it last time wouldn't be persisted. So I created /var/lib/boot2docker/certs/, chucked all of the private certs I need in there and added created /var/lib/boot2docker/bootlocal.sh to install them. Gisted for everyone's downloading pleasure: https://gist.github.com/irgeek/afb2e05775fff532f960
Some notes about the certs in the /var/lib/boot2docker/certs/ directory: