Add firewalling

This commit is contained in:
Julien Vaubourg
2015-09-27 16:03:01 +02:00
parent 67d17653fb
commit 7b05614b3c
6 changed files with 119 additions and 3 deletions

9
scripts/prerequisites Normal file
View File

@@ -0,0 +1,9 @@
# Source me
# Check Moulinette version (firewall hook)
ynh_moulinette_version=$(sudo dpkg -l moulinette-yunohost | grep ii | awk '{ print $3 }' | sed 's/\.//g')
if [ "${ynh_moulinette_version}" -lt 240 ]; then
echo "ERROR: You need a YunoHost-Moulinette version equals or greater than 2.4.0" >&2
exit 1
fi