diff --git a/conf/.env b/conf/.env index 67cdf9a..8a5044b 100644 --- a/conf/.env +++ b/conf/.env @@ -12,4 +12,11 @@ OCIS_BASE_DATA_PATH=__DATA_DIR__ IDM_ADMIN_PASSWORD=__PASSWORD__ -IDM_ADMIN=__ADMIN__ \ No newline at end of file +#IDM_ADMIN=__ADMIN__ + +OCIS_DEFAULT_LANGUAGE=__LANGUAGE__ + + +OCIS_LDAP_URI=ldap://localhost:9235 +OCIS_LDAP_USER_BASE_DN="ou=users,dc=yunohost,dc=org" +OCIS_LDAP_GROUP_BASE_DN="ou=groups,dc=yunohost,dc=org" \ No newline at end of file diff --git a/manifest.toml b/manifest.toml index 10bd36d..bd4c8bb 100644 --- a/manifest.toml +++ b/manifest.toml @@ -36,10 +36,17 @@ ram.runtime = "50M" [install.init_main_permission] type = "group" default = "visitors" + + [install.language] + ask.en = "Choose the application language" + ask.fr = "Choisissez la langue de l'application" + type = "select" + choices = ["fr", "en"] + default = "fr" [install.admin] type = "user" - + [install.password] type = "password" diff --git a/scripts/install b/scripts/install index 2a5120a..9c27c23 100755 --- a/scripts/install +++ b/scripts/install @@ -37,12 +37,12 @@ yunohost service add $app --description="File sharing platform" --log="/var/log/ #================================================= # ADD A CONFIGURATION #================================================= -#ynh_script_progression --message="Adding a configuration file..." --weight=1 +ynh_script_progression --message="Adding a configuration file..." --weight=1 -#ynh_add_config --template=".env" --destination="$install_dir/ocis.env" +ynh_add_config --template=".env" --destination="$install_dir/ocis.env" -#chmod 400 "$install_dir/ocis.env" -#chown $app:$app "$install_dir/ocis.env" +chmod 400 "$install_dir/ocis.env" +chown $app:$app "$install_dir/ocis.env" #================================================= # INSTALL OWNCLOUD