File: rec-append-record.rb

package info (click to toggle)
augeas 0.2.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,080 kB
  • ctags: 3,084
  • sloc: ansic: 22,252; sh: 10,348; yacc: 435; ruby: 410; lex: 172; makefile: 126
file content (19 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Convenience to save some typing
entry_last = "/files/etc/pam.d/newrole/10000"
commands="
ins entry after #{entry_last}
set #{entry_last}/type auth
set #{entry_last}/control include
set #{entry_last}/module system-auth
save
"

diff["/etc/pam.d/newrole"] = <<TXT
--- /etc/pam.d/newrole
+++ /etc/pam.d/newrole.augnew
@@ -3,3 +3,4 @@
 account    include\tsystem-auth
 password   include\tsystem-auth
 session    required\tpam_namespace.so unmnt_remnt no_unmount_on_close
+auth\tinclude\tsystem-auth
TXT