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 #=================================================