chef-auto-patch icon indicating copy to clipboard operation
chef-auto-patch copied to clipboard

apt-get man page: you should never use -q=2 without a no-action modifier

Open bknowles opened this issue 7 years ago • 1 comments

https://github.com/bflad/chef-auto-patch/blob/70300ec8c22b08bc334685651651ad3212589379/templates/default/auto-patch-prep.sh.erb#L30

Note that the apt-get man page has this to say about the -q=2 option:

       -q, --quiet
           Quiet; produces output suitable for logging, omitting progress indicators. More q's will produce more quiet up
           to a maximum of 2. You can also use -q=# to set the quiet level, overriding the configuration file. Note that
           quiet level 2 implies -y; you should never use -qq without a no-action modifier such as -d, --print-uris or -s
           as APT may decide to do something you did not expect. Configuration Item: quiet.

bknowles avatar Nov 28 '17 19:11 bknowles

This also applies to chef-auto-patch/templates/default/auto-patch.sh.erb on line 17.

bknowles avatar Nov 28 '17 19:11 bknowles