mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-04 00:07:16 +08:00
sudoers fix for cinstall.install
This commit is contained in:
parent
1f77462c89
commit
8ce0264d57
@ -35,7 +35,7 @@ post_install() {
|
||||
|
||||
echo "Mod sudoers file"
|
||||
if [ "sudoers: `grep bundle /etc/sudoers`" = "sudoers: " ] ; then
|
||||
echo "%bundle ALL=(ALL) NOPASSWD: /sbin/mount -o loop -t squashfs" >> /etc/sudoers
|
||||
echo "%bundle ALL=(ALL) NOPASSWD: /sbin/mount -o loop -t squashfs *" >> /etc/sudoers
|
||||
echo "ensure correct sudoers permissions"
|
||||
chmod -v 0440 /etc/sudoers
|
||||
else
|
||||
@ -80,7 +80,7 @@ post_upgrade() {
|
||||
|
||||
echo "Mod sudoers file"
|
||||
if [ "sudoers: `grep bundle /etc/sudoers`" = "sudoers: " ] ; then
|
||||
echo "%bundle ALL=(ALL) NOPASSWD: /sbin/mount -o loop -t squashfs" >> /etc/sudoers
|
||||
echo "%bundle ALL=(ALL) NOPASSWD: /sbin/mount -o loop -t squashfs *" >> /etc/sudoers
|
||||
echo "ensure correct sudoers permissions"
|
||||
chmod -v 0440 /etc/sudoers
|
||||
else
|
||||
@ -112,4 +112,4 @@ post_remove() {
|
||||
op=$1
|
||||
shift
|
||||
|
||||
$op $*
|
||||
$op $*
|
||||
|
Loading…
Reference in New Issue
Block a user