Explorar o código

Update install-functions_fedora_server22

Add function to help fix permissions.
volga629 %!s(int64=9) %!d(string=hai) anos
pai
achega
bc3ccc9302
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      install/fedora-server/22/install-functions_fedora_server22

+ 6 - 0
install/fedora-server/22/install-functions_fedora_server22

@@ -8,6 +8,12 @@ pause() {
     read -p "$key" readEnterKey
 }
 
+fix_perm() {
+  for dir in $(find . -type d); do
+      setfacl -m user:nginx:rwx,group:nginx:rwx "$dir"
+  done
+}
+
 deploy_remote_pgsql() {
     cmd_remote_pgsql_p1 >  /tmp/deploy_remote_pgsql
     cmd_remote_pgsql_p2 >> /tmp/deploy_remote_pgsql