diff --git a/conf/config.php b/conf/config.php index 0ab80bd..0773c50 100644 --- a/conf/config.php +++ b/conf/config.php @@ -8,10 +8,12 @@ return array( 'username' => '__BD_NAME__', 'password' => '__BD_PWD__', ), + 'storage' => array( 'driver' => 'local', 'path' => '__DATA_DIR__', ), + 'ldap' => array( 'enabled' => true, 'schema' => 'ldap', diff --git a/conf/extra_php-fpm.conf b/conf/extra_php-fpm.conf index 9dacb8a..1f6b70e 100644 --- a/conf/extra_php-fpm.conf +++ b/conf/extra_php-fpm.conf @@ -1,4 +1,4 @@ ; Additional php.ini defines, specific to this pool of workers. -php_admin_value[upload_max_filesize] = 512M -php_admin_value[post_max_size] = 512M +php_admin_value[upload_max_filesize] = 1G +php_admin_value[post_max_size] = 1G diff --git a/conf/nginx.conf b/conf/nginx.conf index e4bb875..305e968 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,7 +6,7 @@ location __PATH__/ { index index.html index.htm index.php; - client_max_body_size 512M; + client_max_body_size 1G; try_files $uri $uri/ __PATH__/index.php; diff --git a/manifest.toml b/manifest.toml index de08b81..9034afe 100644 --- a/manifest.toml +++ b/manifest.toml @@ -54,4 +54,7 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "php8.2-sqlite3 php8.2-gd php8.2-fileinfo php8.2-zip php8.2-intl" + packages = "mariadb-server php8.2-intl php8.2-mysql php8.2-gd php8.2-fileinfo php8.2-zip php8.2-ldap" + + [resources.database] + type = "mysql" diff --git a/scripts/install b/scripts/install index fa03ef3..28274c0 100755 --- a/scripts/install +++ b/scripts/install @@ -15,7 +15,9 @@ 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" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 94685dd..3bc3252 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,11 +24,21 @@ then 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" + ynh_setup_source --dest_dir="$install_dir" --keep="config.php" fi chown -R $app:www-data "$install_dir" +#================================================= +# XBACKBONE UPGRADE +#================================================= +ynh_script_progression --message="Install database" --weight=1 + +pushd $install_dir + php$phpversion php/migrate --install + php$phpversion php/clean +popd + #================================================= # PHP-FPM CONFIGURATION #================================================= diff --git a/tests.toml b/tests.toml index 3b0292e..8a6579f 100644 --- a/tests.toml +++ b/tests.toml @@ -6,4 +6,4 @@ test_format = 1.0 # Tests to run # ------------ - exclude = ["install.root"] \ No newline at end of file + exclude = ["install.root"]