diff --git a/tests/p_tftp-server/20-tftp-server_put-test.sh b/tests/p_tftp-server/20-tftp-server_put-test.sh index 29a4136..e12619a 100755 --- a/tests/p_tftp-server/20-tftp-server_put-test.sh +++ b/tests/p_tftp-server/20-tftp-server_put-test.sh @@ -16,8 +16,11 @@ echo "t_functional_test" > put_test touch $TFTP_DIR/put_test chmod 666 $TFTP_DIR/put_test -# Fix selinux bool -setsebool tftp_anon_write 1 +# Fix selinux bool on c6 +if (t_GetPkgRel basesystem | grep -q el6) +then + setsebool tftp_anon_write 1 +fi tftp 127.0.0.1 -c put put_test