mirror of
https://github.com/YunoHost-Apps/xwiki_ynh.git
synced 2024-09-03 20:36:11 +02:00
Fix permissions
This commit is contained in:
parent
08b6d9d67e
commit
241c2ddb0e
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,7 @@ add_config() {
|
||||||
}
|
}
|
||||||
|
|
||||||
set_permissions() {
|
set_permissions() {
|
||||||
chmod -R u+rwX,o-rwx "$install_dir"
|
chmod -R u+rwX,g+rX-w,o= "$install_dir"
|
||||||
chown -R "$app:$app" "$install_dir"
|
chown -R "$app:$app" "$install_dir"
|
||||||
chmod -R u=rwX,g=rX,o= /etc/"$app"
|
chmod -R u=rwX,g=rX,o= /etc/"$app"
|
||||||
chown -R "$app:$app" /etc/"$app"
|
chown -R "$app:$app" /etc/"$app"
|
||||||
|
@ -157,6 +157,7 @@ set_permissions() {
|
||||||
chown "$app:$app" -R /var/log/"$app"
|
chown "$app:$app" -R /var/log/"$app"
|
||||||
chmod u=rwX,g=rX,o= -R /var/log/"$app"
|
chmod u=rwX,g=rX,o= -R /var/log/"$app"
|
||||||
|
|
||||||
|
chmod u=rwx,g=rx,o= "$data_dir"
|
||||||
find "$data_dir" \( \! -perm -o= \
|
find "$data_dir" \( \! -perm -o= \
|
||||||
-o \! -user "$app" \
|
-o \! -user "$app" \
|
||||||
-o \! -group "$app" \) \
|
-o \! -group "$app" \) \
|
||||||
|
|
Loading…
Add table
Reference in a new issue