Skip to content

Commit

Permalink
Merge pull request #19372 from DimStar77/znc
Browse files Browse the repository at this point in the history
znc: use the same parameters for --makeconf as the service uses
  • Loading branch information
foursixnine committed May 24, 2024
2 parents 3e80462 + 67a10bc commit 34c6a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/console/znc.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sub run {
select_console('root-console');
zypper_call('in znc');

script_run("su znc -s /bin/bash -c 'znc --makeconf' | tee /dev/$serialdev; echo zncconf-status-\$? > /dev/$serialdev", 0);
script_run("su znc -s /bin/bash -c \"\$(grep ExecStart= /usr/lib/systemd/system/znc.service | sed 's/ExecStart=//') --makeconf\" | tee /dev/$serialdev; echo zncconf-status-\$? > /dev/$serialdev", 0);

wait_serial('Listen on port') || die "znc --makeconf failed";
enter_cmd("12345");
Expand Down

0 comments on commit 34c6a7f

Please sign in to comment.