1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minetest_ynh.git synced 2024-09-03 20:36:00 +02:00

Fix Firewall + Rpi installation

This commit is contained in:
Luc Didry 2017-06-23 15:19:48 +02:00
parent 076178c19e
commit ded42f6cc8
2 changed files with 8 additions and 1 deletions

View file

@ -42,7 +42,8 @@ test -z "$codename" && (ynh_die "codename empty")
port=$(ynh_find_port 30000) # Cherche un port libre.
# Ouvre les ports dans le firewall
ALL_QUIET sudo yunohost firewall allow --no-upnp UDP $port
ALL_QUIET sudo yunohost firewall allow UDP $port
ALL_QUIET sudo yunohost firewall allow TCP $port
ynh_app_setting_set $app port $port
# Enregistre les infos dans la config YunoHost
@ -61,6 +62,11 @@ ynh_app_setting_set $app damage ${damage}
# Installation du paquet minetest et ses dépendances
ynh_replace_string "__CODENAME__" "$codename" ../conf/minetest.list
sudo cp -a ../conf/minetest.list /etc/apt/sources.list.d/
if [ $(uname -m) == "armv7l" ]
then
gpg --keyserver pgpkeys.mit.edu --recv-key 7638D0442B90D010
gpg -a --export 7638D0442B90D010 | sudo apt-key add -
fi
sudo apt-get update
sudo apt-get -qq -t $codename-backports -y install minetest-server

View file

@ -36,6 +36,7 @@ fi
# Ferme les ports dans le firewall
ALL_QUIET sudo yunohost firewall disallow UDP $port
ALL_QUIET sudo yunohost firewall disallow TCP $port
#=================================================
# SPECIFIC REMOVE