glusterfs service: Copy hooks to /var at startup.

This is where glusterfs expects them; see also
https://github.com/gluster/glusterfs/blob/v3.10.1/extras/hook-scripts/Makefile.am#L4

Also see upstream bug https://bugzilla.redhat.com/show_bug.cgi?id=1452761

+4 -1
+4 -1
nixos/modules/services/network-filesystems/glusterfs.nix
··· 3 with lib; 4 5 let 6 - inherit (pkgs) glusterfs; 7 8 cfg = config.services.glusterfs; 9 ··· 50 after = [ "rpcbind.service" "network.target" "local-fs.target" ]; 51 before = [ "network-online.target" ]; 52 53 preStart = '' 54 install -m 0755 -d /var/log/glusterfs 55 ''; 56 57 serviceConfig = {
··· 3 with lib; 4 5 let 6 + inherit (pkgs) glusterfs rsync; 7 8 cfg = config.services.glusterfs; 9 ··· 50 after = [ "rpcbind.service" "network.target" "local-fs.target" ]; 51 before = [ "network-online.target" ]; 52 53 + # The copying of hooks is due to upstream bug https://bugzilla.redhat.com/show_bug.cgi?id=1452761 54 preStart = '' 55 install -m 0755 -d /var/log/glusterfs 56 + mkdir -p /var/lib/glusterd/hooks/ 57 + ${rsync}/bin/rsync -a ${glusterfs}/var/lib/glusterd/hooks/ /var/lib/glusterd/hooks/ 58 ''; 59 60 serviceConfig = {