diff --git a/build/bootstraps/bootstrap-install.sh b/build/bootstraps/bootstrap-install.sh index 470dcecba2e302fbad42de4ba2d6b2e41bef589e..53f11f0858d53f3c6d1d10aa8374ab1751d37b42 100755 --- a/build/bootstraps/bootstrap-install.sh +++ b/build/bootstraps/bootstrap-install.sh @@ -235,10 +235,8 @@ if ! test -n "${PROJECTOR}" -o -f "/usr/sbin/projetor" -o \ # Add root permissions to datasid echo -e "seed_mec\tALL=(ALL) NOPASSWD: ALL" >> "${TMPFILE}" - # Remove on Fedora the requirement of tty for sudo - if grep -q "Fedora" /etc/issue; then - echo -e 'Defaults:seed_mec\t!requiretty' >> "${TMPFILE}" - fi + # Remove the requirement of tty for sudo + echo -e 'Defaults:seed_mec\t!requiretty' >> "${TMPFILE}" # Check if modified sudoers file is valid and apply it if ! visudo -cf "${TMPFILE}" || ! mv "${TMPFILE}" /etc/sudoers \ diff --git a/collect/net/bandwidth.sh b/collect/net/bandwidth.sh index 3326fd456a39f30a1b5365874d3b8dca1d190117..76ef484b26c48d8482631b70e23cb1b6334145fa 100755 --- a/collect/net/bandwidth.sh +++ b/collect/net/bandwidth.sh @@ -100,7 +100,7 @@ IPTABLES=$(which iptables) test $? -ne 0 && IPTABLES="/sbin/iptables" test -x $IP || exit 1 -test -x $IPTABLES || (IPTABLES="/usr/sbin/iptables" && test -x $IPTABLES) || exit 1 +test -x $IPTABLES || IPTABLES="/usr/sbin/iptables" && test -x $IPTABLES || exit 1 #------------------------------------------------------------------------------ # Calculate bytes and packets counts and print to TRAFFIC