Commit 08c2e70befea95c691d1967c766b9517af2aaec9

Authored by Julien Malik
1 parent 8ac2193a38
Exists in master

[fix] Support space in filenames, fixes #13

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

... ... @@ -49,8 +49,8 @@ sudo chown -hR owncloud:www-data $final_path
49 49 sudo chown -hR owncloud:www-data $data_path
50 50 sudo chown owncloud:www-data /home/yunohost.app/owncloud
51 51 sudo chmod 755 /home/yunohost.app
52   -sudo find $final_path -type f | xargs sudo chmod 664
53   -sudo find $final_path -type d | xargs sudo chmod 775
  52 +sudo find $final_path -type f -print0 | xargs -0 sudo chmod 664
  53 +sudo find $final_path -type d -print0 | xargs -0 sudo chmod 775
54 54 sudo chmod -R 770 $data_path
55 55  
56 56 # Change variables in Owncloud configuration
... ... @@ -109,8 +109,8 @@ mysql -u $db_user -p$db_pwd $db_user < ../conf/ldap_config.sql
109 109 sudo chown -hR owncloud:owncloud $final_path
110 110 sudo chown -hR owncloud:owncloud $data_path
111 111 sudo chmod 755 /home/yunohost.app
112   -sudo find $final_path -type f | xargs sudo chmod 664
113   -sudo find $final_path -type d | xargs sudo chmod 775
  112 +sudo find $final_path -type f -print0 | xargs -0 sudo chmod 664
  113 +sudo find $final_path -type d -print0 | xargs -0 sudo chmod 775
114 114 sudo chmod -R 770 $data_path
115 115  
116 116 # Make an LDAP user as admin