Support for new openssl versions (RT#140509).
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Fri, 13 Sep 2013 09:00:59 +0000 (11:00 +0200)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Fri, 13 Sep 2013 09:00:59 +0000 (11:00 +0200)
debian/postinst

index 97d8ac5..68f0916 100644 (file)
@@ -170,7 +170,7 @@ restart_bacula() {
 }
 
 random_string() {
-    head -n 20 /dev/urandom | openssl dgst -sha1
+    head -n 20 /dev/urandom | openssl dgst -sha1 | sed 's/^.* //'
 }
 
 send_mail() {