Browse Source

Fixing backup restore

Kayou 6 years ago
parent
commit
89b59655d5
2 changed files with 1 additions and 2 deletions
  1. 1 1
      scripts/backup
  2. 0 1
      scripts/restore

+ 1 - 1
scripts/backup

@@ -37,7 +37,7 @@ ynh_print_info "Backing up the main app directory..."
 
 ynh_backup "$final_path"
 
-if [[ $firmware_nonfree -eq 1 ]]; then
+if [[ $firmware_nonfree -eq 0 ]]; then
   ynh_backup "/lib/firmware/htc_7010.fw"
   ynh_backup "/lib/firmware/htc_9271.fw"
 fi

+ 0 - 1
scripts/restore

@@ -64,7 +64,6 @@ if [[ $firmware_nonfree -eq 1 ]]; then
 else
   packages=$free_packages
 
-  mkdir -p /lib/firmware
   ynh_restore_file "/lib/firmware/htc_7010.fw"
   ynh_restore_file "/lib/firmware/htc_9271.fw"
 fi