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

Revert Enforce permissions

This commit is contained in:
ewilly 2017-07-03 22:23:34 +02:00
parent d315c2dcf8
commit e9c1a6353a
2 changed files with 7 additions and 7 deletions

View file

@ -74,9 +74,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 root:"$app" "$final_path"
sudo chown -R "$app": "$final_path/private"
sudo chown -R "$app": "$data_path/uploads"

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 0644
sudo find "$data_path" -type d | xargs sudo chmod 0755
sudo chown -R root:"$app" "$final_path"
sudo chown -R "$app": "$final_path/private"
sudo chown -R "$app": "$data_path/uploads"