mirror of
https://github.com/YunoHost-Apps/omeka-s_ynh.git
synced 2024-09-03 19:56:05 +02:00
fix
This commit is contained in:
parent
09eb098be3
commit
f058033ef8
4 changed files with 56 additions and 1 deletions
47
conf/local.config.php
Normal file
47
conf/local.config.php
Normal 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',
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
|
@ -58,6 +58,12 @@ ram.runtime = "50M"
|
|||
sha256 = "95aa91802ef497f6fb33e7bf1d129b041dc11ce1dc2eca4a6790a29becd592ad"
|
||||
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.install_dir]
|
||||
|
|
|
@ -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/modules/" --source_id="csvimport"
|
||||
ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="ldap"
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
|
|
@ -39,7 +39,8 @@ ynh_script_progression --message="Upgrading source files..." --weight=1
|
|||
|
||||
# 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/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"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
|
Loading…
Reference in a new issue