Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Support ALL in pkg command when using the -H or --host option. #588

Merged
merged 1 commit into from
May 12, 2023

Conversation

yaazkal
Copy link
Collaborator

@yaazkal yaazkal commented May 10, 2023

Before this PR: When using ALL as a target in the pkg command that uses the pkg binary of the host, it shows an error:

# bastille pkg -H ALL update
[ALL]: Not started. See 'bastille start ALL'.

This PR does:

  1. Support the usage of ALL as a target when using the option -H or --host of the pkg command in order to use the pkg binary of the host, enabling the update/upgrade of all jails binary ports or even install/uninstall a given port in all jails at once without installing pkg in every jail.
  2. Encapsulates some behavior in functions to prevent duplication that is error prone if there is any change in the future.

@cedwards cedwards merged commit bc9f4d7 into BastilleBSD:master May 12, 2023
@yaazkal yaazkal deleted the all-target-fix branch May 12, 2023 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants