mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Change cmds count to always be right.
This commit is contained in:
parent
73651d2b87
commit
03a0c5d2f2
@ -327,7 +327,7 @@ function patch_system_files() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Check if sudoers needs patching
|
# 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
|
then
|
||||||
# Sudoers file has incorrect number of commands. Wiping them out.
|
# Sudoers file has incorrect number of commands. Wiping them out.
|
||||||
install_log "Cleaning system sudoers file"
|
install_log "Cleaning system sudoers file"
|
||||||
|
Loading…
Reference in New Issue
Block a user