mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 01:16:59 +02:00
feat(coreos-base/coreos-base): let core sudo
let the core user sudo!
This commit is contained in:
parent
7097be26b9
commit
a4f5d5fd47
@ -129,6 +129,14 @@ src_install() {
|
|||||||
insinto /etc/profile.d
|
insinto /etc/profile.d
|
||||||
doins "${FILESDIR}"/cursor.sh
|
doins "${FILESDIR}"/cursor.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Add a sudo file for the core use
|
||||||
|
if [[ -n ${SHARED_USER_NAME} ]] ; then
|
||||||
|
insinto /etc/sudoers.d
|
||||||
|
echo "${SHARED_USER_NAME} ALL=(ALL) ALL" > 95_cros_base
|
||||||
|
insopts -m 440
|
||||||
|
doins 95_cros_base || die
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
|
Loading…
Reference in New Issue
Block a user