[augeas-devel] Calling augtool from a script
Ian Mortimer
i.mortimer at uq.edu.au
Wed Apr 24 02:20:42 UTC 2013
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
i.mortimer at uq.edu.au Ian Mortimer
Tel: +61 7 3346 8528 Science IT
University of Queensland
More information about the augeas-devel
mailing list