diff --git a/installers/common.sh b/installers/common.sh index c798fdf9..9cfedc31 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -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"