我想要运行apt-get更新,然后安装一些新的程序(tmux)以及apt-get升级在我的所有服务器上运行上限设置,但是在v3上显然缺乏关于sudo的文档,.
原文链接:https://www.f2er.com/bash/383631.html在sudo的v3发行页面上的getcha让我很伤心.
http://www.capistranorb.com/2013/06/01/release-announcement.html
例如,这里是我认为sudo应该基于某些谷歌搜索工作,但是我一直被要求输入密码.
desc "Check that we can access everything" task :setup do on roles(:web) do uptime = capture(:uptime) info "Uptime: #{uptime}" sudo "apt-get update" end end
随着我的反应,我手动输入密码在终端似乎没有做任何事情(没有错误,没有回应).
DEBUG [e47a40c6] Finished in 4.646 seconds command successful. DEBUG [e47a40c6] 05:37:52 up 14:36,3 users,load average: 0.00,0.01,0.05 DEBUG [e47a40c6] Finished in 4.646 seconds command successful. INFO Uptime: 05:37:52 up 14:36,0.05 INFO [d194a520] Running /usr/bin/env sudo apt-get update on 192.168.1.126 DEBUG [d194a520] Command: /usr/bin/env sudo apt-get update DEBUG [d194a520] [sudo] password for deploy:
另外,有没有一个地方,我没有看到哪些文件被更新到v3?