1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00

fix chmod issues

This commit is contained in:
src386 2015-08-19 14:11:09 +02:00
parent 5b1c821a93
commit 180d9df6a2
2 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@ sudo cp -a ../sources/* $final_path
# Create movim system user and set permissions
sudo useradd -d /var/www/movim -s /bin/sh movim
sudo chown -R movim:www-data $final_path
sudo chmod -R 750 $final_path
sudo chmod -R 770 $final_path
# Install PHP dependencies
sudo su -c "curl -sS https://getcomposer.org/installer | php -- --install-dir=$final_path" movim

View file

@ -13,11 +13,11 @@ sudo cp -a ../sources/* $final_path
# Create movim user if not exists and set permissions
if grep -q movim /etc/passwd; then
sudo chown -R movim:www-data $final_path
sudo chmod -R 750 $final_path
sudo chmod -R 770 $final_path
else
sudo useradd -s /bin/sh -d $final_path movim
sudo chown -R movim:www-data $final_path
sudo chmod -R 750 $final_path
sudo chmod -R 770 $final_path
fi
# Update PHP dependencies