这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@SamuelMarks
Copy link
Contributor

No description provided.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This specific line doesn't work, since only echo is being sudo'd. Needs to be wrapped in "sh -c" so it is all sudo, or piped to sudo tee /etc/apt/sources.list.d/docker.list

Also, i'm not sure I'm not sure this is the behavior one might expect, a script escalating itself via sudo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, true that. I was running this example in a slightly modified context—using fabric—so didn't realise. Thanks.

josegonzalez added a commit that referenced this pull request Aug 15, 2015
From /dev/null to -qq, from --silent to -sL, and sudo
@josegonzalez josegonzalez merged commit dffdaa1 into dokku:master Aug 15, 2015
@josegonzalez
Copy link
Member

Thanks for the pr!

@SamuelMarks
Copy link
Contributor Author

nps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants