]> git.michaelhowe.org Git - pub/michael/system-install.git/commitdiff
Initial repo creation
authorMichael Howe <michael@michaelhowe.org>
Sat, 26 Jul 2014 16:12:44 +0000 (17:12 +0100)
committerMichael Howe <michael@michaelhowe.org>
Sat, 26 Jul 2014 16:12:44 +0000 (17:12 +0100)
Start with a test bootstrap script

bootstrap-host.sh [new file with mode: 0644]

diff --git a/bootstrap-host.sh b/bootstrap-host.sh
new file mode 100644 (file)
index 0000000..9ef8699
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+set -e
+
+BASE_URL="https://svn.michaelhowe.org/static"
+CERT_URL="$BASE_URL/MichaelSecurePlaces.pem"
+GPG_PACKAGE_URL="$BASE_URL/mh-archive-keyring-latest.deb"
+
+TEMP_DIR=`mktemp -d`
+
+# Get the SSL certificate
+TEMP_CERT="$TEMP_DIR/MichaelSecurePlaces.pem.crt"
+wget -O $TEMP_CERT https://svn.michaelhowe.org/static/MichaelSecurePlaces.pem
+
+mkdir -p /usr/local/share/ca-certificates
+
+mv $TEMP_CERT /usr/local/share/ca-certificates/MichaelSecurePlaces.pem.crt
+
+update-ca-certificates
+
+# GPG key
+TEMP_GPG_PACKAGE="$TEMP_DIR/mh-archive-keyring"
+wget -O $TEMP_GPG_PACKAGE $GPG_PACKAGE_URL
+dpkg -i $TEMP_GPG_PACKAGE