mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-23 11:31:35 +01:00
Simpify permission set and avoid to set all perms each time
This commit is contained in:
parent
d836db84d1
commit
311a4196fb
@ -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…
Reference in New Issue
Block a user