I threw together the ufw states and they can be much better. First they should be broken into the underlying modules and the states themselves. Also they could do a better job checking if the command is necessary before calling it. For instance we don't need to call ufw enable if ufw status already shows it is active.
I threw together the
ufw
states and they can be much better. First they should be broken into the underlying modules and the states themselves. Also they could do a better job checking if the command is necessary before calling it. For instance we don't need to callufw enable
ifufw status
already shows it is active.