Add do_fix_perms() in archiso rc script.

Fix file permissions, since GIT does not manage perms other than 755 and 644.
Also this can be used to adjusts owner:group.

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2010-03-15 23:45:04 -03:00
parent 1e868e0114
commit eeadc90a11

View File

@ -81,10 +81,19 @@ do_locale_gen ()
stat_done
}
# GIT does not manage perms others thans 755 and 644, so fix here.
do_fix_perms ()
{
stat_busy "Fixing file permissions..."
chmod 440 /etc/sudoers
stat_done
}
case "$1" in
start)
do_locale_gen
do_makeuser
do_fix_perms
;;
esac
exit 0