I would like to install wireshark with an automatic install script.

A script like that
Code:
#!/bin/bash
sudo apt install wireshark
# do lots of other stuff
will halt and wait for user input on allowing non-root users to run dumpcap. How can i provide the answer "yes" automatically?