Commit d459457a647ae7b6a13d05680f55398eab9de498

Authored by Alexis Gavoty
1 parent 10fb156f09
Exists in master

[fix] typo

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -6,7 +6,7 @@ path=$2
6 6 user=$3
7 7  
8 8 # Check user parameter
9   -sudo yunohost user list --json | grep -q '"username": "$user"'
  9 +sudo yunohost user list --json | grep -q "\"username\": \"$user\""
10 10 if [[ ! $? -eq 0 ]]; then
11 11 echo "Wrong user"
12 12 exit 1
... ... @@ -62,7 +62,7 @@ sudo sed -i "s@NAMETOCHANGE@owncloud@g" /etc/php5/fpm/pool.d/owncloud.conf
62 62 # Set permissions to owncloud directories and /home directories + add Home external storage
63 63 for i in $(ls /home)
64 64 do
65   - sudo yunohost user list --json | grep -q '"username": "$i"'
  65 + sudo yunohost user list --json | grep -q "\"username\": \"$i\""
66 66 if [[ $? -eq 0 ]];
67 67 then
68 68 sudo setfacl -m g:owncloud:rwx /home/$i