Bläddra i källkod

Make backup and restore scripts executable

Bob Mottram 10 år sedan
förälder
incheckning
426660ca3d
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4
    0
      install-freedombone.sh

+ 4
- 0
install-freedombone.sh Visa fil

@@ -592,6 +592,8 @@ function create_backup_script {
592 592
   echo "umount $USB_MOUNT" >> /usr/bin/$BACKUP_SCRIPT_NAME
593 593
   echo 'echo "Backup to USB drive is complete. You can now unplug it."' >> /usr/bin/$BACKUP_SCRIPT_NAME
594 594
   echo 'exit 0' >> /usr/bin/$BACKUP_SCRIPT_NAME
595
+  chmod 400 /usr/bin/$BACKUP_SCRIPT_NAME
596
+  chmod +x /usr/bin/$BACKUP_SCRIPT_NAME
595 597
 
596 598
   echo 'create_backup_script' >> $COMPLETION_FILE
597 599
 }
@@ -694,6 +696,8 @@ function create_restore_script {
694 696
   echo "umount $USB_MOUNT" >> /usr/bin/$RESTORE_SCRIPT_NAME
695 697
   echo 'echo "Restore from USB drive is complete. You can now remove it."' >> /usr/bin/$RESTORE_SCRIPT_NAME
696 698
   echo 'exit 0' >> /usr/bin/$RESTORE_SCRIPT_NAME
699
+  chmod 400 /usr/bin/$RESTORE_SCRIPT_NAME
700
+  chmod +x /usr/bin/$RESTORE_SCRIPT_NAME
697 701
 
698 702
   echo 'create_restore_script' >> $COMPLETION_FILE
699 703
 }