Merge pull request #24 from Jaimy85/master

add $file to awk
This commit is contained in:
David Personette 2016-06-21 15:42:36 -04:00 committed by GitHub
commit dfd84c2fc9

View File

@ -34,7 +34,7 @@ import() { local name id file="${1}"
# none)
# Return: result
perms() { local i file=/etc/samba/smb.conf
for i in $(awk -F ' = ' '/ path = / {print $2}'); do
for i in $(awk -F ' = ' '/ path = / {print $2}' $file); do
chown -Rh smbuser. $i
find $i -type d -exec chmod 775 {} \;
find $i -type f -exec chmod 664 {} \;