Commit ea731315190be30432816622a8e6dbab50000a73
1 parent
a87b65ea93
Exists in
master
Update upgrade
Showing 1 changed file with 5 additions and 6 deletions Side-by-side Diff
scripts/upgrade
... | ... | @@ -25,8 +25,11 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/owncloud.conf |
25 | 25 | sudo cp ../conf/php-fpm.conf /etc/php5/fpm/pool.d/owncloud.conf |
26 | 26 | sudo cp ../conf/php-fpm.ini /etc/php5/fpm/conf.d/20-owncloud.ini |
27 | 27 | sudo cp ../conf/mount.json $data_path |
28 | -sudo chown -hR owncloud:www-data $final_path $data_path | |
29 | -sudo chmod -R 775 $final_path $data_path | |
28 | +sudo chown -hR owncloud:www-data $final_path | |
29 | +sudo chown -hR owncloud:www-data $data_path | |
30 | +sudo chmod 755 /home/yunohost.app | |
31 | +sudo chmod -R 775 $data_path | |
32 | +sudo chmod -R 775 $final_path | |
30 | 33 | |
31 | 34 | # Change variables in Owncloud configuration |
32 | 35 | sudo sed -i "s@PATHTOCHANGE@$path@g" /etc/nginx/conf.d/$domain.d/owncloud.conf |
... | ... | @@ -34,10 +37,6 @@ sudo sed -i "s@ALIASTOCHANGE@$final_path/@g" /etc/nginx/conf.d/$domain.d/ownclou |
34 | 37 | sudo sed -i "s@NAMETOCHANGE@owncloud@g" /etc/nginx/conf.d/$domain.d/owncloud.conf |
35 | 38 | sudo sed -i "s@NAMETOCHANGE@owncloud@g" /etc/php5/fpm/pool.d/owncloud.conf |
36 | 39 | |
37 | -# Change permission on owncloud directories | |
38 | -sudo chown -hR owncloud: $final_path | |
39 | -sudo chown -hR owncloud: $data_path | |
40 | - | |
41 | 40 | # Reload Nginx and regenerate SSOwat conf |
42 | 41 | sudo service php5-fpm restart |
43 | 42 | sudo service nginx reload |