Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgaspar authored and tituspijean committed Feb 12, 2024
1 parent ef0c7cf commit f5bc0d1
Show file tree
Hide file tree
Showing 15 changed files with 62 additions and 804 deletions.
137 changes: 0 additions & 137 deletions .github/workflows/updater.sh

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/updater.yml

This file was deleted.

30 changes: 0 additions & 30 deletions check_process

This file was deleted.

2 changes: 1 addition & 1 deletion conf/systemd.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
ExecStart=__INSTALL_DIR__/Prowlarr -nobrowser -data=__DATA_PATH__
ExecStart=__INSTALL_DIR__/Prowlarr -nobrowser -data=__DATA_DIR__

TimeoutStopSec=20
KillMode=process
Expand Down
3 changes: 1 addition & 2 deletions doc/DISCLAIMER.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
* Supported architectures are `arm`, `arm64`, and `amd64`
* Access control is done with YunoHost's permissions system.
* API (`domain.tld/path/api`) can be accessed by visitors to allow control by remote clients.
* API (`__DOMAIN____PATH__/api`) can be accessed by visitors to allow control by remote clients.
3 changes: 1 addition & 2 deletions doc/DISCLAIMER_fr.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
* Les architectures compatibles sont `arm`, `arm64`, et `amd64`
* Le contrôle de l'accès se fait avec le système de permissions de YunoHost.
* L'API (`domain.tld/path/api`) est accessible aux visiteurs pour permettre le contrôle via des clients externes.
* L'API (`__DOMAIN____PATH__/api`) est accessible aux visiteurs pour permettre le contrôle via des clients externes.
47 changes: 0 additions & 47 deletions manifest.json

This file was deleted.

34 changes: 23 additions & 11 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,29 @@ license = "GPL-3.0-only"
website = "https://prowlarr.com"
admindoc = "https://wiki.servarr.com/prowlarr"
code = "https://github.com/Prowlarr/Prowlarr"
cpe = "???" # FIXME: optional but recommended if relevant, this is meant to contain the Common Platform Enumeration, which is sort of a standard id for applications defined by the NIST. In particular, Yunohost may use this is in the future to easily track CVE (=security reports) related to apps. The CPE may be obtained by searching here: https://nvd.nist.gov/products/cpe/search. For example, for Nextcloud, the CPE is 'cpe:2.3:a:nextcloud:nextcloud' (no need to include the version number)
fund = "???" # FIXME: optional but recommended (or remove if irrelevant / not applicable). This is meant to be an URL where people can financially support this app, especially when its development is based on volunteers and/or financed by its community. YunoHost may later advertise it in the webadmin.

[integration]
yunohost = ">= 11.2"
architectures = "all" # FIXME: can be replaced by a list of supported archs using the dpkg --print-architecture nomenclature (amd64/i386/armhf/arm64), for example: ["amd64", "i386"]
architectures = "all"
multi_instance = true
ldap = "?" # FIXME: replace with true, false, or "not_relevant". Not to confuse with the "sso" key : the "ldap" key corresponds to wether or not a user *can* login on the app using its YunoHost credentials.
sso = "?" # FIXME: replace with true, false, or "not_relevant". Not to confuse with the "ldap" key : the "sso" key corresponds to wether or not a user is *automatically logged-in* on the app when logged-in on the YunoHost portal.
disk = "50M" # FIXME: replace with an **estimate** minimum disk requirement. e.g. 20M, 400M, 1G, ...
ram.build = "50M" # FIXME: replace with an **estimate** minimum ram requirement. e.g. 50M, 400M, 1G, ...
ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requirement. e.g. 50M, 400M, 1G, ...

ldap = false

sso = false

disk = "50M"
ram.build = "50M"
ram.runtime = "50M"

[install]
[install.domain]
# this is a generic question - ask strings are automatically handled by Yunohost's core
type = "domain"

[install.path]
# this is a generic question - ask strings are automatically handled by Yunohost's core
type = "path"
default = "/prowlarr"

[install.admin]
# this is a generic question - ask strings are automatically handled by Yunohost's core
type = "user"

[resources]
Expand All @@ -55,5 +53,19 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen

[resources.install_dir]

[resources.data_dir]

[resources.ports]

[resources.permissions]
main.url = "/"
main.allowed = "admins"

api.url = "/api"
api.allowed = "visitors"
api.show_tile = false
api.protected = true

[resources.apt]
packages = "curl, mediainfo, sqlite3"

30 changes: 2 additions & 28 deletions scripts/backup
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,11 @@
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers

#=================================================
# MANAGE SCRIPT FAILURE
#=================================================

#REMOVEME? ynh_clean_setup () {
### Remove this function if there's nothing to clean before calling the remove script.
true
}
# Exit if an error occurs during the execution of the script
#REMOVEME? ynh_abort_if_errors

#=================================================
# LOAD SETTINGS
#=================================================
#REMOVEME? ynh_print_info --message="Loading installation settings..."

#REMOVEME? app=$YNH_APP_INSTANCE_NAME

#REMOVEME? #REMOVEME? install_dir=$(ynh_app_setting_get --app=$app --key=install_dir)
#REMOVEME? data_path=$(ynh_app_setting_get --app=$app --key=data_path)
#REMOVEME? domain=$(ynh_app_setting_get --app=$app --key=domain)

#=================================================
# DECLARE DATA AND CONF FILES TO BACKUP
#=================================================
ynh_print_info --message="Declaring files to be backed up..."

### N.B. : the following 'ynh_backup' calls are only a *declaration* of what needs
### to be backuped and not an actual copy of any file. The actual backup that
### creates and fill the archive with the files happens in the core after this
### script is called. Hence ynh_backups calls takes basically 0 seconds to run.

#=================================================
# BACKUP THE APP MAIN DIR
#=================================================
Expand All @@ -52,7 +25,8 @@ ynh_backup --src_path="$install_dir"
# BACKUP THE APP DATA DIR
#=================================================

ynh_backup --src_path="$data_path"
# Only relevant if there is a "data_dir" resource for this app
ynh_backup --src_path="$data_dir" --is_big

#=================================================
# BACKUP THE NGINX CONFIGURATION
Expand Down
Loading

0 comments on commit f5bc0d1

Please sign in to comment.