liske / needrestart

Restart daemons after library updates.
GNU General Public License v2.0
426 stars 67 forks source link

[UI] Make stdio noninteractive if DEBIAN_FRONTEND='noninteractive' #214

Closed juergh closed 2 years ago

juergh commented 3 years ago

With DEBIAN_FRONTEND='noninteractive' NeedRestart::UI::stdio should not prompt for user input.

Fixes #129

juergh commented 3 years ago

Ping. Any comments on this PR?

liske commented 2 years ago

Sorry for the long pending PR. Thanks!

philippludwig commented 2 years ago

I am currently using needrestart version 3.5-4 on Debian bullseye and are running into this issue when I am trying to upgrade several machines automatically. It seems that this fix did not make it into 3.6, is this correct? And if I may ask another question, is there some workaround in the meantime?

Thanks!

Edit: I found a workaround for my case, were I now run apt upgrade over ssh without the -tt flag, which causes needrestart to correctly detect that no PTY is available.