Commits

Etienne Perot committed 2fd40ff

Add bin-wrappers path to the system $PATH

Comments (0)

Files changed (2)

modules/bin_wrapper/files/bin-wrappers.env.sh

+export PATH="/etc/bin-wrappers:$PATH"

modules/bin_wrapper/manifests/base.pp

 		mode => 0755,
 		require => Package['bash']
 	}
+	file {'/etc/profile.d/bin-wrappers.sh':
+		source => 'puppet:///modules/bin_wrapper/bin-wrappers.env.sh',
+		owner => 'root',
+		group => 'root',
+		mode => 0755,
+		require => Package['bash']
+	}
+	if inline_template('<%= File.exists?("/etc/kde/env") %>') == 'true' {
+		file {'/etc/kde/env/bin-wrappers.sh':
+			source => 'puppet:///modules/bin_wrapper/bin-wrappers.env.sh',
+			owner => 'root',
+			group => 'root',
+			mode => 0755
+		}
+	}
 }