From d661060f0eb8a9bd4fe8104b39db8ad32d07bea5 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Wed, 1 Nov 2017 00:46:38 +0530 Subject: [PATCH] Restoration fail if the /var/www/$app don't exit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The app fails to restore if the /var/www/freshrss don't exits. Applied the latest helper to overcome it. I think it would solve the problem. But it needs to be tested. I will test it when I get the time. Error log: + sudo chown -R root:root /var/www/freshrss Warning: chown: cannot access ‘/var/www/freshrss’: No such file or directory Error: Unable to restore the app 'freshrss' --- scripts/restore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index 4e97e3b..e883b71 100644 --- a/scripts/restore +++ b/scripts/restore @@ -20,8 +20,7 @@ sudo yunohost app checkurl $domain$path -a $app || ynh_die "The path ${domain}${ db_pass=$(ynh_app_setting_get $app mysqlpwd) # Restore sources & data -final_path=/var/www/$app -ynh_backup "www" "$final_path" +ynh_restore_file "$final_path" # Restore permissions sudo chown -R root:root $final_path