Kaynağa Gözat

Set permissions for restore script

Bob Mottram 10 yıl önce
ebeveyn
işleme
7554d366ec
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3
    0
      install-freedombone.sh

+ 3
- 0
install-freedombone.sh Dosyayı Görüntüle

@@ -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