ironing out issues during very first install
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 7 Feb 2014 15:09:26 +0000 (16:09 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 7 Feb 2014 15:09:26 +0000 (16:09 +0100)
apache/APACHE.notes
apache/unfold-init-ssl.sh
debian/unfold.install
debian/unfold.postinst

index 7c77e4b..d3c55e0 100644 (file)
@@ -14,7 +14,7 @@ A few notes and caveats must be outlined though below; see also unfold-init-ssl.
 * all the local material for this deployment gets into /etc/unfold/
 
 * I could not find a way to have client-auth without server auth;
-  this is totally weird, and stupid, but just so
+  this is totally weird, and stupid, but that's how it is
   so there is a need to install a (probably self-signed) cert 
   and related key in 
 /etc/unfold/myslice.cert
index 74c1c32..69be328 100755 (executable)
@@ -10,6 +10,8 @@ trusted_roots=/etc/unfold/trusted_roots
 key=/etc/unfold/myslice.key
 cert=/etc/unfold/myslice.cert
 
+# provide a hostname as the first arg to this command 
+# (otherwise we use hostname)
 if [[ -n "$@" ]] ; then hostname=$1; shift; else hostname=$(hostname); fi
 
 function init_trusted_roots () {
index 9730d70..fb54250 100644 (file)
@@ -12,3 +12,5 @@ apache/unfold.wsgi /usr/share/unfold/apache/
 apache/unfold.conf /etc/apache2/sites-available
 manage.py usr/share/unfold/
 usr/bin/unfold-init-ssl.sh
+etc/unfold/trusted_roots
+var/unfold
index f307b31..f0ecf8c 100644 (file)
@@ -1,4 +1,6 @@
 #!/bin/bash
+# tmp - (or?)
+set -x
 # if this requires a service to be running, add something like this
 # update-rc.d unfold defaults
 [ -d /var/unfold ] || mkdir /var/unfold
@@ -9,6 +11,8 @@ chmod -R 700 /var/unfold
 /usr/share/unfold/manage.py migrate
 # enable required stuff
 a2enmod ssl
-a2dissite default
+a2dissite default || :
 a2ensite unfold.conf
+# create a server-side cert/key and passes on gids to rehash them
+unfold-init-ssl.sh
 service apache2 restart