1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00
This commit is contained in:
liberodark 2019-01-09 09:42:47 +01:00
parent 5c81486941
commit 6d7f14c134
2 changed files with 22 additions and 16 deletions

View file

@ -1,13 +1,13 @@
{
"name": "EmbyServer",
"id": "embyserver",
"name": "AdGuard Home",
"id": "adguard",
"packaging_format": 1,
"description": {
"en": "EmbyServer package for YunoHost.",
"fr": "EmbyServer pour YunoHost."
"en": "AdGuard Home package for YunoHost.",
"fr": "AdGuard Home pour YunoHost."
},
"version": "3.5.3.0",
"url": "https://emby.media/",
"version": "0.9.2",
"url": "https://github.com/AdguardTeam/AdGuardHome",
"license": "free",
"maintainer": {
"name": "liberodark",
@ -16,7 +16,7 @@
"requirements": {
"yunohost": ">= 2.7.2"
},
"multi_instance": true,
"multi_instance": false,
"services": [
"nginx",
"php5-fpm",
@ -27,8 +27,8 @@
"name": "domain",
"type": "domain",
"ask": {
"en": "Choose a domain name for EmbyServer",
"fr": "Choisissez un nom de domaine pour EmbyServer"
"en": "Choose a domain name for AdGuard Home",
"fr": "Choisissez un nom de domaine pour AdGuard Home"
},
"example": "example.com"
},
@ -37,11 +37,11 @@
"name": "path",
"type": "path",
"ask": {
"en": "Choose a path for EmbyServer /emby is accepted",
"fr": "Choisissez un chemin pour EmbyServer /emby est accepté"
"en": "Choose a path for AdGuard Home /adguard is accepted",
"fr": "Choisissez un chemin pour AdGuard Home /adguard est accepté"
},
"example": "/emby",
"default": "/emby"
"example": "/adguard",
"default": "/adguard"
},
{

View file

@ -66,6 +66,12 @@ ynh_app_setting_set $app domain $domain
ynh_app_setting_set $app path $path_url
ynh_app_setting_set $app is_public $is_public
#==============================================
# INSTALL DEPS
#==============================================
ynh_package_install setcap
#=================================================
# FIND AND OPEN A PORT
#=================================================
@ -76,7 +82,7 @@ ynh_app_setting_set $app is_public $is_public
### - Remove the section "CLOSE A PORT" in the remove script
# Find a free port
port=$(ynh_find_port 8096)
port=$(ynh_find_port 53)
# Open this port
yunohost firewall allow --no-upnp TCP $port 2>&1
ynh_app_setting_set $app port $port
@ -90,10 +96,10 @@ ynh_app_setting_set $app final_path $final_path
ynh_setup_source "$final_path"
#==============================================
# INSTALL EMBY
# INSTALL ADGUARD
#==============================================
dpkg --install $final_path/emby-server-deb*
setcap CAP_NET_BIND_SERVICE=+eip .$final_path/AdGuardHome
#=================================================
# NGINX CONFIGURATION