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:
parent
1e868e0114
commit
eeadc90a11
@ -81,10 +81,19 @@ do_locale_gen ()
|
|||||||
stat_done
|
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
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
do_locale_gen
|
do_locale_gen
|
||||||
do_makeuser
|
do_makeuser
|
||||||
|
do_fix_perms
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user