Commit a716105e authored by MARGERY David's avatar MARGERY David
Browse files

[bug #9792] Make packaging by root easier

parent 692e4b1c
Pipeline #46970 waiting for manual action with stages
in 16 minutes and 49 seconds
......@@ -151,7 +151,12 @@ namespace :package do
else
pkg_dependencies= %w{libmysqlclient-dev libxml2-dev libxslt-dev libssl-dev libpq-dev}
end
cmd = "sudo apt-get install #{pkg_dependencies.join(" ")} git-core dh-make dpkg-dev libicu-dev --yes && rm -rf /tmp/#{NAME}"
if Process.uid == 0
sudo=""
else
sudo='sudo '
end
cmd = "#{sudo}apt-get install #{pkg_dependencies.join(" ")} git-core dh-make dpkg-dev libicu-dev --yes && rm -rf /tmp/#{NAME}"
sh cmd
Dir.chdir('/tmp') do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment