Browse Source

Permissions on mesh users script

Bob Mottram 9 years ago
parent
commit
387a74371e
No account linked to committer's email
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/freedombone-image-customise

+ 2
- 0
src/freedombone-image-customise View File

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