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", "name": "AdGuard Home",
"id": "embyserver", "id": "adguard",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "EmbyServer package for YunoHost.", "en": "AdGuard Home package for YunoHost.",
"fr": "EmbyServer pour YunoHost." "fr": "AdGuard Home pour YunoHost."
}, },
"version": "3.5.3.0", "version": "0.9.2",
"url": "https://emby.media/", "url": "https://github.com/AdguardTeam/AdGuardHome",
"license": "free", "license": "free",
"maintainer": { "maintainer": {
"name": "liberodark", "name": "liberodark",
@ -16,7 +16,7 @@
"requirements": { "requirements": {
"yunohost": ">= 2.7.2" "yunohost": ">= 2.7.2"
}, },
"multi_instance": true, "multi_instance": false,
"services": [ "services": [
"nginx", "nginx",
"php5-fpm", "php5-fpm",
@ -27,8 +27,8 @@
"name": "domain", "name": "domain",
"type": "domain", "type": "domain",
"ask": { "ask": {
"en": "Choose a domain name for EmbyServer", "en": "Choose a domain name for AdGuard Home",
"fr": "Choisissez un nom de domaine pour EmbyServer" "fr": "Choisissez un nom de domaine pour AdGuard Home"
}, },
"example": "example.com" "example": "example.com"
}, },
@ -37,11 +37,11 @@
"name": "path", "name": "path",
"type": "path", "type": "path",
"ask": { "ask": {
"en": "Choose a path for EmbyServer /emby is accepted", "en": "Choose a path for AdGuard Home /adguard is accepted",
"fr": "Choisissez un chemin pour EmbyServer /emby est accepté" "fr": "Choisissez un chemin pour AdGuard Home /adguard est accepté"
}, },
"example": "/emby", "example": "/adguard",
"default": "/emby" "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 path $path_url
ynh_app_setting_set $app is_public $is_public ynh_app_setting_set $app is_public $is_public
#==============================================
# INSTALL DEPS
#==============================================
ynh_package_install setcap
#================================================= #=================================================
# FIND AND OPEN A PORT # 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 ### - Remove the section "CLOSE A PORT" in the remove script
# Find a free port # Find a free port
port=$(ynh_find_port 8096) port=$(ynh_find_port 53)
# Open this port # Open this port
yunohost firewall allow --no-upnp TCP $port 2>&1 yunohost firewall allow --no-upnp TCP $port 2>&1
ynh_app_setting_set $app port $port 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" 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 # NGINX CONFIGURATION