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

Fixes to User #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixes to User #174

wants to merge 1 commit into from

Conversation

johalun
Copy link
Contributor

@johalun johalun commented Jan 20, 2017

Corrected strategy_add from BOARD_INSTALL to OPTION_INSTALL (otherwise it will be run before pkg install).
Added create group if does not exist.


if [ $? > 2 ]; then
USER=$1
shift
for GROUP in $@; do
# Group can be added by pkg, ensure this happens after pkg install in "option Package".
PRIORITY=110 strategy_add $PHASE_FREEBSD_BOARD_INSTALL pw_add_user_to_group $USER $GROUP
PRIORITY=110 strategy_add $PHASE_FREEBSD_OPTION_INSTALL pw_add_user_to_group $USER $GROUP
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The strategy sort is stable, so you don't actually need different priorities here, as long as pw_create_account is added before pw_add_user_to_group.

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