We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents facd4f8 + bddec27 commit cbc5b68Copy full SHA for cbc5b68
files/virt_volume.sh
@@ -104,7 +104,7 @@ if [[ -f "$output" || -d "$output" ]]; then
104
existing_group="$(stat --format '%G' "$output")"
105
new_owner="${VOLUME_OWNER:-$existing_owner}"
106
new_group="${VOLUME_GROUP:-$existing_group}"
107
- output=$(chown "$new_owner":"$new_group" "$output" 2>1)
+ output=$(chown "$new_owner":"$new_group" "$output" 2>&1)
108
result=$?
109
if [[ $result -ne 0 ]]; then
110
echo "Failed to change ownership of the volume to $new_owner:$new_group"
0 commit comments