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 3 with lib; 4 4 5 5 let 6 - inherit (pkgs) glusterfs; 6 + inherit (pkgs) glusterfs rsync; 7 7 8 8 cfg = config.services.glusterfs; 9 9 ··· 50 50 after = [ "rpcbind.service" "network.target" "local-fs.target" ]; 51 51 before = [ "network-online.target" ]; 52 52 53 + # The copying of hooks is due to upstream bug https://bugzilla.redhat.com/show_bug.cgi?id=1452761 53 54 preStart = '' 54 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/ 55 58 ''; 56 59 57 60 serviceConfig = {