From 8565546fca272054c508c7c020220b7ab4bdddce Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sat, 20 Jan 2024 11:41:56 +0100 Subject: [PATCH] fix --- conf/settings.py | 2 +- scripts/restore | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/conf/settings.py b/conf/settings.py index a10ce50..5534292 100644 --- a/conf/settings.py +++ b/conf/settings.py @@ -79,7 +79,7 @@ DATABASES = { # Data directory, you can use following for the development purposes: # os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "data") -DATA_DIR = "__INSTALL_DIR__/" +DATA_DIR = "__INSTALL_DIR__/data" CACHE_DIR = f"{DATA_DIR}/cache" # Local time zone for this installation. Choices can be found here: diff --git a/scripts/restore b/scripts/restore index a8bdd34..0263875 100755 --- a/scripts/restore +++ b/scripts/restore @@ -38,7 +38,6 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=5 -ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pg_trgm;" --database=$db_name ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql #=================================================