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:
parent
5b1c821a93
commit
180d9df6a2
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue