lib/csd/application/minisip/unix/linux/debian/ubuntu10.rb in csd-0.1.18 vs lib/csd/application/minisip/unix/linux/debian/ubuntu10.rb in csd-0.2.0
- old
+ new
@@ -5,10 +5,11 @@
module Application
module Minisip
class Ubuntu10 < Debian
def after_aptitude
+ create_working_directory
fix_ubuntu_10_04
super
end
def fix_ubuntu_10_04
@@ -22,11 +23,11 @@
r.replace '#include <giomm/socket.h>', "/* ----- AI COMMENTING OUT START ----- \n#include <giomm/socket.h>"
r.replace '#include <giomm/tcpconnection.h>', "#include <giomm/tcpconnection.h>\n ----- AI COMMENTING OUT END ----- */"
end
# We cannot use Cmd.copy here, because Cmd.copy has no superuser privileges.
# And since we are for sure on Ubuntu, these commands will work.
- Cmd.run("sudo cp #{Path.giomm_header} #{Path.giomm_header_backup}")
- Cmd.run("sudo cp #{Path.new_giomm_header} #{Path.giomm_header}")
+ Cmd.run "sudo cp #{Path.giomm_header} #{Path.giomm_header_backup}", :announce_pwd => false
+ Cmd.run "sudo cp #{Path.new_giomm_header} #{Path.giomm_header}", :announce_pwd => false
end
end
end
end
\ No newline at end of file