[SCM] live-config branch, debian-next, updated. debian/2.0_a3-1-9-gefe40d1

Daniel Baumann daniel at debian.org
Wed Jun 2 19:15:03 UTC 2010


The following commit has been merged in the debian-next branch:
commit efe40d149f25b3e1fa61f1a67f2d50dd3de943cd
Author: Daniel Baumann <daniel at debian.org>
Date:   Wed Jun 2 21:08:25 2010 +0200

    Add mechanism to avoid re-running sslcert script on persistent systems.

diff --git a/scripts/config/111-sslcert b/scripts/config/111-sslcert
index 284c1ad..383c8ec 100755
--- a/scripts/config/111-sslcert
+++ b/scripts/config/111-sslcert
@@ -3,7 +3,8 @@
 Sslcert ()
 {
 	# Checking if package is installed
-	if [ ! -e /var/lib/dpkg/info/sslcert.list ]
+	if [ ! -e /var/lib/dpkg/info/sslcert.list ] || \
+	   [ -e /var/cache/live/config/sslcert ]
 	then
 		return
 	fi
@@ -16,6 +17,9 @@ Sslcert ()
 Configure_sslcert ()
 {
 	make-ssl-cert generate-default-snakeoil --force-overwrite
+
+	mkdir -p /var/cache/live/config
+	touch /var/cache/live/config/sslcert
 }
 
 Sslcert

-- 
live-config



More information about the debian-live-changes mailing list