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:
parent
2025b57780
commit
d661060f0e
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
db_pass=$(ynh_app_setting_get $app mysqlpwd)
|
||||||
|
|
||||||
# Restore sources & data
|
# Restore sources & data
|
||||||
final_path=/var/www/$app
|
ynh_restore_file "$final_path"
|
||||||
ynh_backup "www" "$final_path"
|
|
||||||
|
|
||||||
# Restore permissions
|
# Restore permissions
|
||||||
sudo chown -R root:root $final_path
|
sudo chown -R root:root $final_path
|
||||||
|
|
Loading…
Reference in a new issue