diff --git a/agent/bin/datasid-netmon.sh b/agent/bin/datasid-netmon.sh index e0c31389dcfc99cf7477453ed0946e22c1bd3590..9856446ad8a89a506118f3a91d055c3b41b84aa4 100755 --- a/agent/bin/datasid-netmon.sh +++ b/agent/bin/datasid-netmon.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 #------------------------------------------------------------------------------ diff --git a/agent/bootstrap/install b/agent/bootstrap/install index 17e4da90a1f8bf151df4254201f4a5fd80fcbd23..242342e80041606ab540259dd5a68c70f35a1928 100644 --- a/agent/bootstrap/install +++ b/agent/bootstrap/install @@ -201,10 +201,8 @@ sed '/^\(Defaults:\)\?datasid/d' /etc/sudoers > "${TMPFILE}" # Add root permissions to datasid echo -e "datasid\tALL=(ALL) NOPASSWD: ALL" >> "${TMPFILE}" -# Remove on Fedora the requirement of tty for sudo -if grep -q "Fedora" /etc/issue; then - echo -e 'Defaults:datasid\t!requiretty' >> "${TMPFILE}" -fi +# Remove the requirement of tty for sudo +echo -e 'Defaults:datasid\t!requiretty' >> "${TMPFILE}" # Check if modified sudoers file is valid and apply it if ! visudo -cf "${TMPFILE}" || ! mv "${TMPFILE}" /etc/sudoers \ @@ -233,14 +231,6 @@ fi rm -f "${PKG_FILE}" -# Create conf/proxy -cat > conf/proxy << EOF -PROXY_HOST="${PROXY_HOST}" -PROXY_PORT="${PROXY_PORT}" -PROXY_USERNAME="${PROXY_USERNAME}" -PROXY_PASSWORD="${PROXY_PASSWORD}" -EOF - # Change files owner if ! chown -R datasid:datasid "${DATASID_HOME}"; then printf "FALHA!\n" >&3