Simpify permission set and avoid to set all perms each time

This commit is contained in:
Josué Tille 2024-02-07 12:08:03 +01:00
parent d836db84d1
commit 311a4196fb
No known key found for this signature in database
GPG Key ID: 5F259226AD51F2F5

View File

@ -15,7 +15,7 @@ _set_permissions() {
chmod +x "$install_dir/gitea" chmod +x "$install_dir/gitea"
chown -R "$app:$app" "$data_dir" chown -R "$app:$app" "$data_dir"
find $data_dir \( \! -perm u=rwX,g=rX,-o= \ find $data_dir \( \! -perm -o= \
-o \! -user $app \ -o \! -user $app \
-o \! -group $app \) \ -o \! -group $app \) \
-exec chown $app:$app {} \; \ -exec chown $app:$app {} \; \