Permissions on mesh users script

This commit is contained in:
Bob Mottram 2016-08-12 08:48:08 +01:00
parent 7eed6ef862
commit 387a74371e
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 2 additions and 0 deletions

View File

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