1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

Restoration fail if the /var/www/$app don't exit

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'
This commit is contained in:
anmol26s 2017-11-01 00:46:38 +05:30 committed by GitHub
parent 2025b57780
commit d661060f0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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