From 1ffe31931378f92bb6db74aff39ab7f0dafbe7a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 25 Oct 2023 19:51:10 +0200 Subject: [PATCH] cleaning --- conf/.env.example | 3 +++ manifest.toml | 3 +++ scripts/remove | 4 ---- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/conf/.env.example b/conf/.env.example index e83b397..2ce11f4 100644 --- a/conf/.env.example +++ b/conf/.env.example @@ -18,6 +18,9 @@ media.baseURL="https://__DOMAIN__" admin.gateway="cp-admin" auth.gateway="cp-auth" +media.root="media" +media.storage="__DATA_DIR__" + #-------------------------------------------------------------------- # Database configuration #-------------------------------------------------------------------- diff --git a/manifest.toml b/manifest.toml index e881682..de6c3ef 100644 --- a/manifest.toml +++ b/manifest.toml @@ -48,6 +48,9 @@ ram.runtime = "50M" [resources.install_dir] + [resources.data_dir] + subdirs = ["media"] + [resources.permissions] main.url = "/" diff --git a/scripts/remove b/scripts/remove index dbb90bb..5de38ad 100755 --- a/scripts/remove +++ b/scripts/remove @@ -22,10 +22,6 @@ ynh_remove_nginx_config # Remove the dedicated PHP-FPM config ynh_remove_fpm_config -#================================================= -# REMOVE VARIOUS FILES -#================================================= - # Remove a cron file ynh_secure_remove --file="/etc/cron.d/$app"