Browse Source

fix: [apache/publish-dir] avoid touching permission to aim at macosx support

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
0k/dev/master
Valentin Lab 5 years ago
parent
commit
5e91f44ce7
  1. 6
      apache/lib/common

6
apache/lib/common

@ -432,8 +432,6 @@ apache_code_dir() {
host_path="$DATASTORE/$BASE_SERVICE_NAME${local_path}" host_path="$DATASTORE/$BASE_SERVICE_NAME${local_path}"
mkdir -p "$host_path" || return 1 mkdir -p "$host_path" || return 1
setfacl -R -m g:"$www_data_gid":rx "$host_path" || return 1
info "Set permission for read and traversal on '$host_path'."
init-config-add " init-config-add "
$SERVICE_NAME: $SERVICE_NAME:
@ -469,9 +467,7 @@ apache_data_dirs() {
dirs+=("$dst/$d") dirs+=("$dst/$d")
done done
mkdir -p "${dirs[@]}"
setfacl -R -m g:"$www_data_gid":rwx "${dirs[@]}" || return 1
setfacl -R -d -m g:"$www_data_gid":rwx "${dirs[@]}" || return 1
mkdir -p "${dirs[@]}" || return 1
init-config-add " init-config-add "
$SERVICE_NAME: $SERVICE_NAME:

Loading…
Cancel
Save