Skip to content

Commit

Permalink
ci deb: tweak downgrade test case
Browse files Browse the repository at this point in the history
Now, no need to unmask td-agent because transitional
td-agent package was installed before.

Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys committed Nov 11, 2024
1 parent 4d409aa commit 154e7da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fluent-package/apt/systemd-test/downgrade-to-v4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ sudo apt install -V -y \
/host/${distribution}/pool/${code_name}/${channel}/*/*/fluent-package_*_${architecture}.deb \
/host/${distribution}/pool/${code_name}/${channel}/*/*/td-agent_*_all.deb

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

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

# fluentd.service is already masked (link to /dev/null), then remove it.
sudo systemctl unmask fluentd
# td-agent.service is already masked, but can't unmask then disable it.
sudo systemctl disable td-agent

# Drop symbolic links and recreate real directory.
sudo rm -f /var/log/td-agent
Expand Down

0 comments on commit 154e7da

Please sign in to comment.