Commit a0a7896f8ab9d4feceec4605ae9b6b2740b10f35
1 parent
283d610268
Exists in
master
Update install
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
scripts/install
| ... | ... | @@ -49,6 +49,7 @@ sudo cp -a ../sources/* $final_path |
| 49 | 49 | sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/owncloud.conf |
| 50 | 50 | sudo cp ../conf/php-fpm.conf /etc/php5/fpm/pool.d/owncloud.conf |
| 51 | 51 | sudo cp ../conf/php-fpm.ini /etc/php5/fpm/conf.d/20-owncloud.ini |
| 52 | +sudo cp ../conf/mount.json $data_path | |
| 52 | 53 | |
| 53 | 54 | # Change variables in Owncloud configuration |
| 54 | 55 | sudo sed -i "s@PATHTOCHANGE@$path@g" /etc/nginx/conf.d/$domain.d/owncloud.conf |
| ... | ... | @@ -63,7 +64,6 @@ do |
| 63 | 64 | then |
| 64 | 65 | sudo setfacl -m g:owncloud:rwx /home/$i |
| 65 | 66 | sudo mkdir $data_path/$i |
| 66 | - echo "{\"user\":{\"$i\":{\"/\$user/files/Local\":{\"class\":\"\\OC\\Files\\Storage\\Local\",\"options\":{\"datadir\":\"/home/$i\"}}}}}" | sudo tee $data_path/$i/mount.json | |
| 67 | 67 | fi |
| 68 | 68 | done |
| 69 | 69 | sudo chown -hR owncloud: $final_path |