Commit 7f4bf644 authored by Yaya's avatar Yaya
Browse files

sftpgo: Include openapi, static and templates folders

Those are needed for serving the web client

(cherry picked from commit 12c32b5583e03ac3834b5e9fc60c76ff66151b5b)
parent b88f160f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -38,6 +38,10 @@ buildGoModule rec {
      --bash <($out/bin/sftpgo gen completion bash) \
      --zsh <($out/bin/sftpgo gen completion zsh) \
      --fish <($out/bin/sftpgo gen completion fish)

    shareDirectory="$out/share/sftpgo"
    mkdir -p "$shareDirectory"
    cp -r ./{openapi,static,templates} "$shareDirectory"
  '';

  meta = with lib; {