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:
parent
076178c19e
commit
ded42f6cc8
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue