prerequisites 333 B

12345678
  1. # Source me
  2. # Check Moulinette version (firewall hook)
  3. ynh_moulinette_version=$(sudo dpkg -l moulinette-yunohost | grep ii | awk '{ print $3 }' | sed 's/\.//g')
  4. if [ "${ynh_moulinette_version}" -lt 240 ]; then
  5. echo "WARN: You need a YunoHost-Moulinette version equals or greater than 2.4.0 for activating the firewalling" >&2
  6. fi