From f996c370b5794c2595185ce07481c3957cab7c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 13 Jun 2024 13:00:09 +0200 Subject: [PATCH] fix --- conf/local.config.php | 2 +- scripts/install | 3 +++ scripts/upgrade | 13 +++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/conf/local.config.php b/conf/local.config.php index 5dbd44f..12b082a 100644 --- a/conf/local.config.php +++ b/conf/local.config.php @@ -40,7 +40,7 @@ return [ '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', + #'accountDomainName' => 'example.com', ], ], ], diff --git a/scripts/install b/scripts/install index cbfedf7..dfd5ad2 100755 --- a/scripts/install +++ b/scripts/install @@ -54,9 +54,12 @@ ynh_add_nginx_config ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="database.ini.default" --destination="$install_dir/config/database.ini" +ynh_add_config --template="local.config.php" --destination="$install_dir/config/local.config.php" chmod 400 "$install_dir/config/database.ini" chown $app "$install_dir/config/database.ini" +chmod 400 "$install_dir/config/local.config.php" +chown $app "$install_dir/config/local.config.php" #================================================= # TWEAK IMAGICK CONFIGURATION TO ALLOW PDF THUMBNAILS GENERATION diff --git a/scripts/upgrade b/scripts/upgrade index 50dac4e..f8840f9 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -45,6 +45,19 @@ ynh_setup_source --dest_dir="$install_dir/modules/" --source_id="ldap" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" +#================================================= +# ADD A CONFIGURATION +#================================================= +ynh_script_progression --message="Adding a configuration file..." --weight=1 + +ynh_add_config --template="database.ini.default" --destination="$install_dir/config/database.ini" +ynh_add_config --template="local.config.php" --destination="$install_dir/config/local.config.php" + +chmod 400 "$install_dir/config/database.ini" +chown $app "$install_dir/config/database.ini" +chmod 400 "$install_dir/config/local.config.php" +chown $app "$install_dir/config/local.config.php" + #================================================= # PHP-FPM CONFIGURATION #=================================================