On 24/04/13 03:24, Graham Leggett wrote:

Does anyone have a working example of augtool being run from a script?

Here's a very simple example from a centos kickstart %post:

augtool -s <<-EOF
set /files/etc/pam.d/system-auth-ac/*[module = 'pam_mkhomedir.so']/argument[1] umask=0077 set /files/etc/pam.d/password-auth-ac/*[module = 'pam_mkhomedir.so']/argument[1] umask=0077
rm /files/etc/ntp.conf/server[. =~ regexp('.*\.centos\.pool\.ntp\.org')]
EOF


--
Ian
     [email protected]     Ian Mortimer
     Tel: +61 7 3346 8528     Science IT
                              University of Queensland

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to