[pkg-kolab] Bug#365876: koblab: /usr/share/kolabd/kolab_bootstrap
uses non-existing group kolab-r
Petter Reinholdtsen
pere at hungry.com
Wed May 3 13:49:27 UTC 2006
Package: kolabd
Version: 1.9.4dfsg-3
Tags: patch
When trying to use /usr/share/kolabd/kolab_bootstrap, it failed at the
end with this error:
[...]
Data Base Updated
Signed certificate is in /etc/kolab/cert.pem
/root
chgrp kolab-r /etc/kolab/key.pem;
chgrp: invalid group `kolab-r'
system chgrp kolab-r /etc/kolab/key.pem; failed: 256 at /usr/share/kolabd/kolab_bootstrap line 123, <STDIN> line 7.
I believe this patch solve the issue, by first of all make the group
name into a variable, and next rename it to 'kolab', which is the
group actually present in /etc/group after the package is installed.
--- /usr/share/kolabd/kolab_bootstrap 2006-04-07 15:11:27.000000000 +0200
+++ /tmp/kolab_bootstrap 2006-05-03 15:35:11.294855856 +0200
@@ -30,6 +30,7 @@
my $kolab_prefix = "";
my $kolab_config = $kolab_prefix."/etc/kolab/kolab.conf";
my %kolab_config;
+my $kolab_group = "kolab";
##### Utility Functions
@@ -623,9 +624,9 @@
kolab_system("/usr/sbin/kolab_ca.sh -newkey $fqdn /etc/kolab/key.pem");
kolab_system("/usr/sbin/kolab_ca.sh -newreq $fqdn /etc/kolab/key.pem /etc/kolab/newreq.pem ");
kolab_system("/usr/sbin/kolab_ca.sh -sign /etc/kolab/newreq.pem /etc/kolab/cert.pem");
- kolab_system("chgrp kolab-r /etc/kolab/key.pem;");
+ kolab_system("chgrp $kolab_group /etc/kolab/key.pem;");
kolab_system("chmod 0640 /etc/kolab/key.pem;");
- kolab_system("chgrp kolab-r /etc/kolab/cert.pem;");
+ kolab_system("chgrp $kolab_group /etc/kolab/cert.pem;");
kolab_system("chmod 0640 /etc/kolab/cert.pem;");
print <<'EOS';
################################################################################
More information about the pkg-kolab-devel
mailing list