瀏覽代碼

Permissions on mesh users script

Bob Mottram 9 年之前
父節點
當前提交
387a74371e
沒有帳戶連結到提交者的電子郵件
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      src/freedombone-image-customise

+ 2
- 0
src/freedombone-image-customise 查看文件

715
 #!/bin/bash
715
 #!/bin/bash
716
 lstox | awk -F ' ' '{\$1=""; print \$0}' | sed -e 's/^[[:space:]]*//' | sort -d > /home/$MY_USERNAME/Desktop/Users.txt
716
 lstox | awk -F ' ' '{\$1=""; print \$0}' | sed -e 's/^[[:space:]]*//' | sort -d > /home/$MY_USERNAME/Desktop/Users.txt
717
 EOF
717
 EOF
718
+    chroot "$rootdir" chown $MY_USERNAME:$MY_USERNAME /usr/bin/list-tox-users
719
+    chroot "$rootdir" chmod +x /usr/bin/list-tox-users
718
     echo "* *       * * *   $MY_USERNAME    /usr/bin/list-tox-users > /dev/null" >> $rootdir/etc/crontab
720
     echo "* *       * * *   $MY_USERNAME    /usr/bin/list-tox-users > /dev/null" >> $rootdir/etc/crontab
719
 
721
 
720
     if [[ $VARIANT != "usb" ]]; then
722
     if [[ $VARIANT != "usb" ]]; then