diff --git a/conf/LDAP-Auth.xml b/conf/LDAP-Auth.xml new file mode 100644 index 0000000..37a7a9e --- /dev/null +++ b/conf/LDAP-Auth.xml @@ -0,0 +1,16 @@ + + + 127.0.0.1 + ou=users,dc=yunohost,dc=org + 389 + uid, mail + uid + (permission=cn=jellyfin.main,ou=permission,dc=yunohost,dc=org) + (permission=cn=jellyfin.admin,ou=permission,dc=yunohost,dc=org) + cn=admin,ou=users,dc=yunohost,dc=org + + true + true + false + false + diff --git a/conf/ldap.src b/conf/ldap.src new file mode 100644 index 0000000..c4cd353 --- /dev/null +++ b/conf/ldap.src @@ -0,0 +1,7 @@ +SOURCE_URL=https://repo.jellyfin.org/releases/plugin/ldap-authentication/ldap-authentication_9.0.0.0.zip +SOURCE_SUM=1EAE1099E30CB3C42FDC2B0ACE50601A8881EBFD9151526F39C8E2B61D7B3EF1 +SOURCE_SUM_PRG=sha256sum +SOURCE_FORMAT=zip +SOURCE_IN_SUBDIR=false +SOURCE_FILENAME= +SOURCE_EXTRACT=true diff --git a/manifest.json b/manifest.json index 1292ae0..dd9c159 100644 --- a/manifest.json +++ b/manifest.json @@ -40,6 +40,15 @@ "example": "/jellyfin", "default": "/jellyfin" }, + { + "name": "admin", + "type": "user", + "ask": { + "en": "Choose an admin user", + "fr": "Choisissez l'administrateur" + }, + "example": "johndoe" + }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index 82a5492..96d1be9 100644 --- a/scripts/install +++ b/scripts/install @@ -26,6 +26,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH +admin=$YNH_APP_ARG_ADMIN is_public=$YNH_APP_ARG_IS_PUBLIC app=$YNH_APP_INSTANCE_NAME @@ -89,6 +90,7 @@ ynh_system_user_create --username=$app #================================================= # MODIFY A CONFIG FILE #================================================= +ynh_script_progression --message="Configuring the settings..." --weight=1 # Load services once to generate system.xml systemctl enable jellyfin @@ -102,6 +104,18 @@ ynh_replace_string --match_string="8096