Quellcode durchsuchen

[paperless] Fix gotenberg build process

Colin Powell vor 3 Jahren
Ursprung
Commit
3eac4fb2ef

+ 1 - 1
ansible/roles/paperless/files/immortal-gotenberg.yml

@@ -1,4 +1,4 @@
-cmd: /usr/local/src/gotenberg/gotenberg
+cmd: /usr/local/bin/gotenberg
 cwd: /usr/local/src/gotenberg
 env:
     CHROMIUM_BIN_PATH: /usr/local/bin/chrome

+ 8 - 1
ansible/roles/paperless/tasks/main.yml

@@ -31,9 +31,16 @@
 
 - name: Gotenberg binary built
   shell:
-    chdir: /usr/local/src/gotenberg
+    chdir: /usr/local/src/gotenberg/cmd/gotenberg
     cmd: go build .
 
+- name: Gotenberg installed
+  ansible.builtin.copy:
+    src: /usr/local/src/gotenberg/cmd/gotenberg/gotenberg
+    dest: /usr/local/bin/gotenberg
+    remote_src: yes
+    mode: a+x
+
 - name: Tika server installed
   get_url:
     url: https://dlcdn.apache.org/tika/2.2.1/tika-server-standard-2.2.1.jar