From 9f263e36040659e821c53262803c4240b7ddbe68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 19 Aug 2023 17:45:05 +0200 Subject: [PATCH 1/2] Update config.php --- conf/config.php | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/conf/config.php b/conf/config.php index 908e638..0ab80bd 100644 --- a/conf/config.php +++ b/conf/config.php @@ -1,16 +1,25 @@ 'XBackBone', +return array( 'base_url' => 'https://__DOMAIN____PATH__', - 'storage' => [ + 'db' => array ( + 'connection' => 'mysql', + 'dsn' => 'host=localhost;port=3306;dbname=__BD_NAME__', + 'username' => '__BD_NAME__', + 'password' => '__BD_PWD__', + ), + 'storage' => array( 'driver' => 'local', - 'path' => './storage', - ], - 'db' => [ - 'connection' => 'sqlite', - 'dsn' => 'resources/database/xbackbone.db', - 'username' => null, - 'password' => null, - ] -]; + 'path' => '__DATA_DIR__', + ), + 'ldap' => array( + 'enabled' => true, + 'schema' => 'ldap', + 'host' => 'ldap://127.0.0.1', + 'port' => 389, + 'base_domain' => 'dc=yunohost,dc=org', + 'search_filter' => '(&(|(objectclass=posixAccount))(uid={{username}})(permission=cn=__APP__.main,ou=permission,dc=yunohost,dc=org))', + 'user_domain' => 'ou=Users', + 'rdn_attribute' => 'uid=', + ), +); From 775fa635759713b9979d3f7d6077ab04120f1f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 19 Aug 2023 17:46:54 +0200 Subject: [PATCH 2/2] fix --- manifest.toml | 1 - scripts/upgrade | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index 9034afe..e0de9d6 100644 --- a/manifest.toml +++ b/manifest.toml @@ -48,7 +48,6 @@ ram.runtime = "50M" [resources.install_dir] [resources.data_dir] - #subdirs = ["storage"] [resources.permissions] main.url = "/" diff --git a/scripts/upgrade b/scripts/upgrade index 3bc3252..dd50215 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -35,7 +35,7 @@ chown -R $app:www-data "$install_dir" ynh_script_progression --message="Install database" --weight=1 pushd $install_dir - php$phpversion php/migrate --install + php$phpversion php/migrate php$phpversion php/clean popd