Hi all,
I need to run some integration test against 389 DS on our
CI-system but when I introduced a new F18 CI-slave creation of
new ds instances with setup-ds.pl started to fail.
Problem seems to be that setup-ds.pl tries to update
systemd releted conf even when run as a user.
Simply skipping systemd stuff when user is not root fixes
the problem:
in /usr/lib64/dirsrv/perl/DSCreate.pm update sub
updateSystemD to include a uid check
[...]
sub updateSystemD {
my $inf = shift;
my $unitdir = "/usr/lib/systemd/system";
my $confbasedir = "/etc/systemd/system";
my $confdir = "$confbasedir/dirsrv.target.wants";
if (!$unitdir or !$confdir or ! -d $unitdir or ! -d
$confdir >>>> or !(getLogin() eq 'root')
<<<<<) {
debug(3, "no systemd - skipping\n");
return ();
}
[...]
DS Version: 389-ds-base-1.3.0.2-1.fc18.x86_64
Shell I open a bug or is this mail enough?
Regards,
Luca
Luca Menegus
D.B.M. S.r.l
Via Enrico Noe, 23 - 20133 Milano (MI) Italy.
Phone: +39 02 26600525
Mobile: +39 3346220663