{"action":"closed","issue":{"url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2406","repository_url":"https://api.github.com/repos/letsencrypt/letsencrypt","labels_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2406/labels{/name}","comments_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2406/comments","events_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2406/events","html_url":"https://github.com/letsencrypt/letsencrypt/issues/2406","id":132355287,"number":2406,"title":"letsencrypt-auto --help should not run \"apt-get install -y ...\" automatically","user":{"login":"pmorch","id":159292,"avatar_url":"https://avatars.githubusercontent.com/u/159292?v=3","gravatar_id":"","url":"https://api.github.com/users/pmorch","html_url":"https://github.com/pmorch","followers_url":"https://api.github.com/users/pmorch/followers","following_url":"https://api.github.com/users/pmorch/following{/other_user}","gists_url":"https://api.github.com/users/pmorch/gists{/gist_id}","starred_url":"https://api.github.com/users/pmorch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmorch/subscriptions","organizations_url":"https://api.github.com/users/pmorch/orgs","repos_url":"https://api.github.com/users/pmorch/repos","events_url":"https://api.github.com/users/pmorch/events{/privacy}","received_events_url":"https://api.github.com/users/pmorch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/letsencrypt/letsencrypt/labels/letsencrypt-auto","name":"letsencrypt-auto","color":"00a080"},{"url":"https://api.github.com/repos/letsencrypt/letsencrypt/labels/ui%20/%20ux","name":"ui / ux","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-09T08:01:05Z","updated_at":"2016-02-11T23:26:46Z","closed_at":"2016-02-11T23:26:46Z","body":"I just had a machine trashed.\r\n\r\nRunning `./letsencrypt-auto --help` ran `apt-get install -y ...` automatically, which, among other things updated `libc`, trashing the entire machine to a point where re-installation was the easiest path. Sure the cause was a misconfiguration of `/etc/apt/sources` performed by us months ago, but still, `./letsencrypt-auto --help` shouldn't trash the machine because of that.\r\n\r\nI suggest removing the `-y` switch so that the user is prompted for confirmation before apt-get does its thing, and/or a `letsencrypt-auto --yes-to-apt` switch or something. If one were to argue that the '-auto' in `letsencrypt-auto` implies automatic behaviour, then please provide a `letsencrypt-non-auto` or something *and use __that__ as the default in the documentation*.\r\n\r\nPlease don't perform an operation that can trash my entire machine by running `./letsencrypt-auto --help`. Nobody expects that. \r\n\r\nOr at the very least check that this doesn't install any packages you didn't anticipate. Perhaps running `apt-get install -s $packages` and testing the output. If only packages from an expected white-list show up, then run `apt-get install -y $packages` otherwise omit the -y and do `apt-get install $packages`, so the user is prompted for confirmation."}}