From b8e684c2a951c55822686c0d94b25cacbfb4509e 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 14:55:44 +0200 Subject: [PATCH] fix --- conf/config.php | 10 +++++----- scripts/install | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/conf/config.php b/conf/config.php index fbe7c48..be0fefb 100644 --- a/conf/config.php +++ b/conf/config.php @@ -2,14 +2,14 @@ return [ 'base_url' => 'https://__DOMAIN____PATH__', // no trailing slash + 'storage' => [ + 'driver' => 'local', + 'path' => '__INSTALL_DIR__/storage', + ], 'db' => [ 'connection' => 'sqlite', 'dsn' => '__INSTALL_DIR__/resources/database/xbackbone.db', 'username' => null, 'password' => null, - ], - 'storage' => [ - 'driver' => 'local', - 'path' => '__INSTALL_DIR__/storage', - ], + ] ]; diff --git a/scripts/install b/scripts/install index ffb0232..49da682 100755 --- a/scripts/install +++ b/scripts/install @@ -15,7 +15,7 @@ source /usr/share/yunohost/helpers ynh_script_progression --message="Setting up source files..." --weight=1 ynh_setup_source --dest_dir="$install_dir" - +mkdir "$install_dir/storage" chown -R $app:www-data "$install_dir" #================================================= @@ -39,7 +39,7 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 -ynh_add_config --template="../conf/config_old.php" --destination="$install_dir/config.php" +ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php" chmod 400 "$install_dir/config.php" chown $app:$app "$install_dir/config.php"