changeset 375:a8a7b2b343b5

Fix `less` highlighting under sudo
author IBBoard <dev@ibboard.co.uk>
date Sat, 17 Jul 2021 15:12:13 +0100
parents 5f4fc00f8189
children 752c0861a7c3
files modules/sudo/files/keep-less-highlight modules/sudo/manifests/init.pp
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/sudo/files/keep-less-highlight	Sat Jul 17 15:12:13 2021 +0100
@@ -0,0 +1,1 @@
+Defaults    env_keep += "LESS_TERMCAP_so LESS_TERMCAP_se"
--- a/modules/sudo/manifests/init.pp	Tue Jun 15 19:46:29 2021 +0100
+++ b/modules/sudo/manifests/init.pp	Sat Jul 17 15:12:13 2021 +0100
@@ -22,4 +22,11 @@
 		source  => "puppet:///modules/sudo/keep-editor",
 		require => Package["sudo"],
 	}
+	file { "/etc/sudoers.d/keep-less-highlight":
+		owner   => root,
+		group   => root,
+		mode    => '0440',
+		source  => "puppet:///modules/sudo/keep-less-highlight",
+		require => Package["sudo"],
+	}
 }