From 409ca7da0fe60c011e5336c1229f7b5dc9729a8c Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Tue, 20 Feb 2024 22:37:47 +0100 Subject: [PATCH] Actually fix restore --- scripts/install | 3 ++- scripts/restore | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 431ad9d..52c87dc 100644 --- a/scripts/install +++ b/scripts/install @@ -8,6 +8,8 @@ source _common.sh source /usr/share/yunohost/helpers + + redis_db=$(ynh_redis_get_free_db) secret_key=$(ynh_string_random --length=40) main_domain=$(yunohost domain list --output-as plain | grep -A1 -e '#main' | tail -n 1) @@ -55,7 +57,6 @@ ynh_setup_source --dest_dir="$install_dir/build" chown -R $app:www-data "$install_dir" chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" #================================================= # INSTALL APP diff --git a/scripts/restore b/scripts/restore index 334c1ec..5897951 100644 --- a/scripts/restore +++ b/scripts/restore @@ -22,6 +22,8 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$install_dir" chown -R $app:$app "$install_dir" +chown $app:www-data "$install_dir" +chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir/frontend" #=================================================