fixes
authorHeiko Schlittermann (APT) <hs@schlittermann.de>
Fri, 02 Sep 2011 11:10:36 +0200
changeset 19 dee622089472
parent 18 c183b8918cc7
child 20 2b50fdcbf09f
fixes
debian/littlebird-tc-core.config
debian/littlebird-tc-core.postinst
debian/littlebird-tc-sql.templates
--- a/debian/littlebird-tc-core.config	Fri Sep 02 10:07:48 2011 +0200
+++ b/debian/littlebird-tc-core.config	Fri Sep 02 11:10:36 2011 +0200
@@ -14,7 +14,7 @@
 
 db_set $prefix/web/serveradmin "$serveradmin" || true
 db_set $prefix/web/crt "/etc/ssl/certs/$servername-crt.pem" || true
-db_set $prefix/web/key "/etc/ssl/key/$servername-key.pem" || true
+db_set $prefix/web/key "/etc/ssl/private/$servername-key.pem" || true
 
 db_input medium $prefix/web/serveradmin || true
 db_input medium $prefix/web/crt || true
--- a/debian/littlebird-tc-core.postinst	Fri Sep 02 10:07:48 2011 +0200
+++ b/debian/littlebird-tc-core.postinst	Fri Sep 02 11:10:36 2011 +0200
@@ -94,6 +94,11 @@
 	    db_go || true
 	fi
     fi
+    # permissions for the cert
+    test "$key" && {
+	chown root: "$key"
+	chmod -v go= "$key"
+    }
 
     # tweak the config file, but just the lines following a magical
     # debconf line
--- a/debian/littlebird-tc-sql.templates	Fri Sep 02 10:07:48 2011 +0200
+++ b/debian/littlebird-tc-sql.templates	Fri Sep 02 11:10:36 2011 +0200
@@ -5,7 +5,7 @@
 Template: littlebird-tc/db/have-admin
 Type: boolean
 Default: no
-Description: Do you have the data to access your database server as admin?
+Description: Do you know how to access your database server as *admin*?
  During the package configuration (postinst) we need to connect
  to your database server and setup the littlebird schema, install
  a littlebird user etcpp. If you can provide us the data to access