Skip to content

Support Debian based GNU/Linux distributions #11

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

Merged
merged 1 commit into from
Oct 3, 2018

Conversation

jovial
Copy link
Contributor

@jovial jovial commented Oct 1, 2018

  • The user qemu does not exist on Debian based
    distributions
  • libvirt-qemu runs with root permissions so we
    do not need to change the ownership of the volumes
    in the storage pool

- The user `qemu` does not exist on Debian based
  distributions
- libvirt-qemu runs with root permissions so we
  do not need to change the ownership of the volumes
  in the storage pool
existing_group="$(stat --format '%G' "$output")"
new_owner="${VOLUME_OWNER:-$existing_owner}"
new_group="${VOLUME_GROUP:-$existing_group}"
output=$(chown "$new_owner":"$new_group" $output 2>1)

Choose a reason for hiding this comment

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

I think you could have just done

if [[ -n $VOLUME_GROUP ]] && [[ -n $VOLUME_OWNER ]]; then
  output=$(chown "$VOLUME_OWNER":"$VOLUME_GROUP" $output 2>1
fi

But this works.

@jovial jovial merged commit 435ea81 into stackhpc:master Oct 3, 2018
@jovial jovial deleted the ubuntu branch October 3, 2018 16:39
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