X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=68f0916d34ed38034af6de0aad4b1a81509943dc;hb=a114cb6edf31ac9c685dee2ded75ff0af18e54c0;hp=630dce4735447f0221dd7ea2dfd840042a263425;hpb=d671b65eaa51d62a3f623d522858e3ed9e4c31c2;p=bacula-cn.git diff --git a/debian/postinst b/debian/postinst index 630dce4..68f0916 100644 --- a/debian/postinst +++ b/debian/postinst @@ -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() { @@ -294,7 +294,7 @@ EOF # Try to send it if [ -x "`which sendmail 2>/dev/null`" ]; then echo Mailing request from $REQUEST_FILE - if sendmail -t -oi < $REQUEST_FILE; then + if sendmail -t -oi -f "$EMAIL" < $REQUEST_FILE; then requestsent=1 fi fi