1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/omeka-s_ynh.git synced 2024-09-03 19:56:05 +02:00
This commit is contained in:
Éric Gaspar 2024-06-13 12:57:40 +02:00
parent 09eb098be3
commit f058033ef8
4 changed files with 56 additions and 1 deletions

47
conf/local.config.php Normal file
View file

@ -0,0 +1,47 @@
<?php
return [
'logger' => [
'log' => false,
'priority' => \Laminas\Log\Logger::NOTICE,
],
'http_client' => [
'sslcapath' => null,
'sslcafile' => null,
],
'cli' => [
'phpcli_path' => null,
],
'thumbnails' => [
'types' => [
'large' => ['constraint' => 800],
'medium' => ['constraint' => 200],
'square' => ['constraint' => 200],
],
'thumbnailer_options' => [
'imagemagick_dir' => null,
],
],
'translator' => [
'locale' => 'en_US',
],
'service_manager' => [
'aliases' => [
'Omeka\File\Store' => 'Omeka\File\Store\Local',
'Omeka\File\Thumbnailer' => 'Omeka\File\Thumbnailer\ImageMagick',
],
],
'ldap' => [
'adapter_options' => [
'server1' => [
'host' => 'localhost',
'username' => 'ou=users,dc=yunohost,dc=org',
'password' => null,
'bindRequiresDn' => true,
'baseDn' => 'ou=users,dc=yunohost,dc=org',
'accountFilterFormat' => "(&(|(objectclass=posixAccount))(uid={{username}})(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))",
'accountCanonicalForm' => 4,
'accountDomainName' => 'example.com',
],
],
],
];

View file

@ -58,6 +58,12 @@ ram.runtime = "50M"
sha256 = "95aa91802ef497f6fb33e7bf1d129b041dc11ce1dc2eca4a6790a29becd592ad" sha256 = "95aa91802ef497f6fb33e7bf1d129b041dc11ce1dc2eca4a6790a29becd592ad"
autoupdate.strategy = "latest_github_tag" autoupdate.strategy = "latest_github_tag"
[resources.sources.ldap]
in_subdir = false
url = "https://github.com/biblibre/omeka-s-module-Ldap/releases/download/v0.5.0/Ldap-0.5.0.zip"
sha256 = "5f0e36c7438f045cec3b7427fd8ebb5f8722b26043cc2028d9577400862becd9"
autoupdate.strategy = "latest_github_tag"
[resources.system_user] [resources.system_user]
[resources.install_dir] [resources.install_dir]

View file

@ -32,6 +32,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="csvimport" ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="csvimport"
ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="ldap"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"

View file

@ -39,7 +39,8 @@ ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep="config/local.config.php config/database.ini modules themes files" ynh_setup_source --dest_dir="$install_dir" --keep="config/local.config.php config/database.ini modules themes files"
ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="csvimport" --full_replace=1 ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="csvimport"
ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="ldap"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"