Skip to content

Commit cfb8f13

Browse files
committed
ci deb: tweak downgrade test case
Now, no need to unmask td-agent because transitional td-agent package was installed before. Signed-off-by: Kentaro Hayashi <[email protected]>
1 parent 4d409aa commit cfb8f13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fluent-package/apt/systemd-test/downgrade-to-v4.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ sudo apt install -V -y \
2020
/host/${distribution}/pool/${code_name}/${channel}/*/*/fluent-package_*_${architecture}.deb \
2121
/host/${distribution}/pool/${code_name}/${channel}/*/*/td-agent_*_all.deb
2222

23-
# td-agent.service is already masked (link to /dev/null), and remove td-agent.service alias not to conflict with v4
24-
sudo systemctl unmask td-agent
23+
sudo systemctl is-active fluentd
24+
sudo systemctl is-active td-agent
2525

2626
# Even though removing fluent-package, log and .conf are kept. dpkg reports "rc fluent-package" and "rc td-agent" status.
2727
sudo apt remove -y fluent-package td-agent
2828

29-
# fluentd.service is already masked (link to /dev/null), then remove it.
29+
# fluentd.service is already masked (link to nonexistent /lib/systemd/system/fluentd.service), then remove it.
3030
sudo systemctl unmask fluentd
3131

3232
# Drop symbolic links and recreate real directory.

0 commit comments

Comments
 (0)