diff --git a/install/gotenberg-install.sh b/install/gotenberg-install.sh index a15d2e0bc..375da2a86 100644 --- a/install/gotenberg-install.sh +++ b/install/gotenberg-install.sh @@ -36,8 +36,6 @@ $STD apt install -y \ fonts-noto-core msg_ok "Installed Dependencies" -GO_VERSION="1.27" setup_go - fetch_and_deploy_gh_release "pdfcpu" "pdfcpu/pdfcpu" "prebuild" "latest" "/opt/pdfcpu" "pdfcpu_*_Linux_$(arch_resolve "x86_64" "arm64").tar.xz" ln -sf "$(find /opt/pdfcpu -type f -name pdfcpu | head -n1)" /usr/local/bin/pdfcpu @@ -49,6 +47,8 @@ msg_ok "Installed unoconverter" fetch_and_deploy_gh_release "gotenberg" "gotenberg/gotenberg" "tarball" "latest" "/opt/gotenberg" +GO_VERSION="$(awk '$1=="go"{print $2}' /opt/gotenberg/go.mod | cut -d. -f1,2)" setup_go + msg_info "Building Gotenberg (Patience)" cd /opt/gotenberg export CGO_ENABLED=0