Use id to get the default group.

This commit is contained in:
Cyril Duez 2013-05-30 19:56:01 +02:00
parent 709f09bdc9
commit d7ab06df16

View file

@ -97,7 +97,7 @@ class BuildGenericBoxTask < ::Rake::TaskLib
run 'cleanup'
sh 'sudo rm -f rootfs.tar.gz'
sh 'sudo tar --numeric-owner -czf rootfs.tar.gz ./rootfs/*'
sh "sudo chown #{ENV['USER']}:#{ENV['USER']} rootfs.tar.gz"
sh "sudo chown #{ENV['USER']}:#{`id -gn`.strip} rootfs.tar.gz"
sh "cp #{pwd}/boxes/#{@distrib}/lxc-template ."
compile_metadata(pwd)
end