mirror of
https://github.com/YunoHost-Apps/gitea_ynh.git
synced 2024-09-03 20:36:22 +02:00
Simpify permission set and avoid to set all perms each time
This commit is contained in:
parent
d836db84d1
commit
311a4196fb
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ _set_permissions() {
|
|||
chmod +x "$install_dir/gitea"
|
||||
|
||||
chown -R "$app:$app" "$data_dir"
|
||||
find $data_dir \( \! -perm u=rwX,g=rX,-o= \
|
||||
find $data_dir \( \! -perm -o= \
|
||||
-o \! -user $app \
|
||||
-o \! -group $app \) \
|
||||
-exec chown $app:$app {} \; \
|
||||
|
|
Loading…
Add table
Reference in a new issue