Browse Source

Fix datadir test

pull/72/head
Maniack Crudelis 8 years ago
committed by GitHub
parent
commit
8e0065fffe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      scripts/restore

2
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 # The data directory will be restored only if it exists in the backup archive
# So only if it was backup previously. # 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 then
ynh_restore_file "$datadir" ynh_restore_file "$datadir"
else else

Loading…
Cancel
Save