diff --git a/scripts/install b/scripts/install index 0823589..74e7061 100755 --- a/scripts/install +++ b/scripts/install @@ -49,8 +49,8 @@ sudo chown -hR owncloud:www-data $final_path sudo chown -hR owncloud:www-data $data_path sudo chown owncloud:www-data /home/yunohost.app/owncloud sudo chmod 755 /home/yunohost.app -sudo find $final_path -type f | xargs sudo chmod 664 -sudo find $final_path -type d | xargs sudo chmod 775 +sudo find $final_path -type f -print0 | xargs -0 sudo chmod 664 +sudo find $final_path -type d -print0 | xargs -0 sudo chmod 775 sudo chmod -R 770 $data_path # Change variables in Owncloud configuration @@ -109,8 +109,8 @@ mysql -u $db_user -p$db_pwd $db_user < ../conf/ldap_config.sql sudo chown -hR owncloud:owncloud $final_path sudo chown -hR owncloud:owncloud $data_path sudo chmod 755 /home/yunohost.app -sudo find $final_path -type f | xargs sudo chmod 664 -sudo find $final_path -type d | xargs sudo chmod 775 +sudo find $final_path -type f -print0 | xargs -0 sudo chmod 664 +sudo find $final_path -type d -print0 | xargs -0 sudo chmod 775 sudo chmod -R 770 $data_path # Make an LDAP user as admin