Skip to content

Commit

Permalink
znc: use the same parameters for --makeconf as the service uses
Browse files Browse the repository at this point in the history
This is important as different versions pass different --datadir= parameters
(or omit it, which then implies ~/.znc).
  • Loading branch information
DimStar77 committed May 23, 2024
1 parent 97b39c5 commit 67a10bc
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 67a10bc

Please sign in to comment.