mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
Update
This commit is contained in:
parent
59f0b23ffb
commit
c90c8a9aa6
1 changed files with 4 additions and 4 deletions
|
@ -73,10 +73,10 @@ myynh_add_fpm_config () {
|
||||||
}
|
}
|
||||||
|
|
||||||
myynh_set_permissions () {
|
myynh_set_permissions () {
|
||||||
[ -z $(sudo find "$final_path" -type f) ] && sudo find "$final_path" -type f | xargs sudo chmod 0644
|
[ $(sudo find "$final_path" -type f | wc -l) -gt 0 ] && sudo find "$final_path" -type f | xargs sudo chmod 0644
|
||||||
[ -z $(sudo find "$final_path" -type d) ] && sudo find "$final_path" -type d | xargs sudo chmod 0755
|
[ $(sudo find "$final_path" -type d | wc -l) -gt 0 ] && sudo find "$final_path" -type d | xargs sudo chmod 0755
|
||||||
[ -z $(sudo find "$data_path" -type f) ] && sudo find "$data_path" -type f | xargs sudo chmod 0644
|
[ $(sudo find "$data_path" -type f | wc -l) -gt 0 ] && sudo find "$data_path" -type f | xargs sudo chmod 0644
|
||||||
[ -z $(sudo find "$data_path" -type d) ] && sudo find "$data_path" -type d | xargs sudo chmod 0755
|
[ $(sudo find "$data_path" -type d | wc -l) -gt 0 ] && sudo find "$data_path" -type d | xargs sudo chmod 0755
|
||||||
sudo chown -R root:"$app" "$final_path"
|
sudo chown -R root:"$app" "$final_path"
|
||||||
sudo chown -R "$app": "$final_path/private"
|
sudo chown -R "$app": "$final_path/private"
|
||||||
sudo chown -R "$app": "$data_path/*"
|
sudo chown -R "$app": "$data_path/*"
|
||||||
|
|
Loading…
Reference in a new issue