Browse Source

Set permissions for restore script

Bob Mottram 10 years ago
parent
commit
7554d366ec
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      install-freedombone.sh

+ 3
- 0
install-freedombone.sh View File

@@ -2644,6 +2644,9 @@ function restore_from_friend {
2644 2644
   echo '' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME
2645 2645
   echo 'exit 0' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME
2646 2646
 
2647
+  chmod 400 /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME
2648
+  chmod +x /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME
2649
+
2647 2650
   echo 'restore_from_friend' >> $COMPLETION_FILE
2648 2651
 }
2649 2652