mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 15:40:22 +00:00
Change cmds count to always be right.
This commit is contained in:
parent
73651d2b87
commit
03a0c5d2f2
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ function patch_system_files() {
|
|||
)
|
||||
|
||||
# Check if sudoers needs patching
|
||||
if [ $(sudo grep -c $raspap_user /etc/sudoers) -ne 28 ]
|
||||
if [ $(sudo grep -c $raspap_user /etc/sudoers) -ne ${#cmds[@]} ]
|
||||
then
|
||||
# Sudoers file has incorrect number of commands. Wiping them out.
|
||||
install_log "Cleaning system sudoers file"
|
||||
|
|
Loading…
Reference in a new issue