1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bozon_ynh.git synced 2024-09-03 18:16:09 +02:00

Correct wrong permissions

This commit is contained in:
ewilly 2017-07-03 21:15:53 +02:00
parent 8bb48ce8cb
commit 3fa1704754
2 changed files with 7 additions and 7 deletions

View file

@ -75,9 +75,9 @@ sudo ln -s "$data_path/uploads" "$final_path/uploads"
sudo ln -s "$data_path/thumbs" "$final_path/thumbs"
# set permissions
sudo find "$final_path" -type f | xargs sudo chmod 0640
sudo find "$final_path" -type d | xargs sudo chmod 0750
sudo find "$data_path" -type d | xargs sudo chmod 0750
sudo find "$final_path" -type f | xargs sudo chmod 0644
sudo find "$final_path" -type d | xargs sudo chmod 0755
sudo find "$data_path" -type d | xargs sudo chmod 0755
sudo chown -R "$app": "$final_path/private"
sudo chown -R "$app": "$data_path/uploads"
sudo chown -R "$app": "$data_path/thumbs"

View file

@ -74,10 +74,10 @@ sudo cp -a "$TMPDIR/." "$final_path"
sudo rm -R "$TMPDIR"
# set permissions
sudo find "$final_path" -type f | xargs sudo chmod 0640
sudo find "$final_path" -type d | xargs sudo chmod 0750
sudo find "$data_path" -type f | xargs sudo chmod 0640
sudo find "$data_path" -type d | xargs sudo chmod 0750
sudo find "$final_path" -type f | xargs sudo chmod 0644
sudo find "$final_path" -type d | xargs sudo chmod 0755
sudo find "$data_path" -type f | xargs sudo chmod 0645
sudo find "$data_path" -type d | xargs sudo chmod 0755
sudo chown -R "$app": "$final_path/private"
sudo chown -R "$app": "$data_path/uploads"
sudo chown -R "$app": "$data_path/thumbs"