Use id to get the default group.
This commit is contained in:
parent
709f09bdc9
commit
d7ab06df16
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class BuildGenericBoxTask < ::Rake::TaskLib
|
||||||
run 'cleanup'
|
run 'cleanup'
|
||||||
sh 'sudo rm -f rootfs.tar.gz'
|
sh 'sudo rm -f rootfs.tar.gz'
|
||||||
sh 'sudo tar --numeric-owner -czf rootfs.tar.gz ./rootfs/*'
|
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 ."
|
sh "cp #{pwd}/boxes/#{@distrib}/lxc-template ."
|
||||||
compile_metadata(pwd)
|
compile_metadata(pwd)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue