From 8e0065fffe1d143ae34a1963a0daa39c813b499a Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 19 Nov 2017 18:45:50 +0100 Subject: [PATCH] Fix datadir test --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index cfc6511..71b0a30 100755 --- a/scripts/restore +++ b/scripts/restore @@ -106,7 +106,7 @@ datadir="/home/yunohost.app/${app}/data" # The data directory will be restored only if it exists in the backup archive # So only if it was backup previously. -if [ -d "$YNH_BACKUP_DIR/data" ] +if [ -d "$YNH_BACKUP_DIR/apps/$app/backup/home/yunohost.app/$app" ] then ynh_restore_file "$datadir" else