From 67b1c95f99f0534ca8ddf506c3cdb3a58b6d608d Mon Sep 17 00:00:00 2001 From: boltgolt Date: Fri, 3 Sep 2021 22:21:49 +0200 Subject: [PATCH] Rename config option for issue #565 --- howdy/debian/postinst | 9 ++++++++- howdy/src/config.ini | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/howdy/debian/postinst b/howdy/debian/postinst index 705fab4..0a31c74 100755 --- a/howdy/debian/postinst +++ b/howdy/debian/postinst @@ -81,7 +81,14 @@ if not os.path.exists("/tmp/howdy_picked_device"): if key == "capture_failed" or key == "capture_successful": if value == "true": print("NOTICE: Howdy login image captures have been disabled by default, change the config to enable them again") - continue + value = "false" + + # MIGRATION 2.6.1 -> 3.0.0 + # Rename config options so they don't do the opposite of what is commonly expected + if key == "ignore_ssh": + key = "abort_if_ssh" + if key == "ignore_closed_lid": + key = "abort_if_lid_closed" try: newConf.set(section, key, value) diff --git a/howdy/src/config.ini b/howdy/src/config.ini index 7dc2d10..d89c5dc 100644 --- a/howdy/src/config.ini +++ b/howdy/src/config.ini @@ -16,10 +16,10 @@ no_confirmation = false suppress_unknown = false # Disable Howdy in remote shells -ignore_ssh = true +abort_if_ssh = true # Disable Howdy if lid is closed -ignore_closed_lid = true +abort_if_lid_closed = true # Disable howdy in the PAM # The howdy command will still function