<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Luca,<br>
    <br>
    Yes please file a ticket at:  <a class="moz-txt-link-freetext" href="https://fedorahosted.org/389/newticket">https://fedorahosted.org/389/newticket</a><br>
    <br>
    If you don't have an account, then I can create the ticket for you.<br>
    <br>
    Thanks for the contribution!<br>
    <br>
    Mark<br>
    <br>
    <br>
    On 02/10/2013 11:30 AM, Luca Menegus wrote:
    <blockquote
      cite="mid:1511165292.840.1360513815178.JavaMail.root@dbmsrl.com"
      type="cite">
      <div style="font-family: times new roman, new york, times, serif;
        font-size: 12pt; color: #000000">
        <div>Hi all,<br>
        </div>
        <div> 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.<br>
        </div>
        <div>Problem seems to be that setup-ds.pl tries to update
          systemd releted conf even when run as a user.<br>
        </div>
        <div><br>
        </div>
        <div>Simply skipping systemd stuff when user is not root fixes
          the problem:<br>
        </div>
        <div>in /usr/lib64/dirsrv/perl/DSCreate.pm update sub
          updateSystemD to include a uid check<br>
        </div>
        <div>[...]<br>
        </div>
        <div>sub updateSystemD {<br>
              my $inf = shift;<br>
              my $unitdir = "/usr/lib/systemd/system";<br>
              my $confbasedir = "/etc/systemd/system";<br>
              my $confdir = "$confbasedir/dirsrv.target.wants";<br>
          <div><br>
          </div>
              if (!$unitdir or !$confdir or ! -d $unitdir or ! -d
          $confdir &gt;&gt;&gt;&gt; or !(getLogin() eq 'root')
          &lt;&lt;&lt;&lt;&lt;) {<br>
                  debug(3, "no systemd - skipping\n");<br>
                  return ();<br>
              }<br>
          <div>[...]<br>
          </div>
          <div><br>
          </div>
        </div>
        <div>DS Version: 389-ds-base-1.3.0.2-1.fc18.x86_64</div>
        <div><br>
        </div>
        <div>Shell I open a bug or is this mail enough?<br>
        </div>
        <div><br>
        </div>
        <div>Regards,<br>
        </div>
        <div> Luca</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><span></span>Luca Menegus<br>
          <div><br>
          </div>
          D.B.M. S.r.l<br>
          Via Enrico Noe, 23 - 20133 Milano (MI) Italy.<br>
          Phone: +39 02 26600525<br>
          Mobile: +39 3346220663<span></span><br>
        </div>
        <div><br>
        </div>
        <div style="position: absolute; left: -40px; top: -25px; width:
          1px; height: 1px; overflow: hidden;" class="mcePaste"
          id="_mcePaste"></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
389 users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/389-users">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Mark Reynolds
Red Hat, Inc
<a class="moz-txt-link-abbreviated" href="mailto:mreynolds@redhat.com">mreynolds@redhat.com</a></pre>
  </body>
</html>