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