From 9cda4592ec0482c2bb705fe807853140a1fc78c0 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 15 Dec 2025 12:10:18 +0100 Subject: [PATCH] swagger bullshit... --- install/postgresus-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/postgresus-install.sh b/install/postgresus-install.sh index 9948cb75f..c8d68524d 100644 --- a/install/postgresus-install.sh +++ b/install/postgresus-install.sh @@ -32,7 +32,8 @@ $STD npm run build cd /opt/postgresus/backend $STD go mod tidy $STD go mod download -cd /opt/postgresus/backend +$STD go install github.com/swaggo/swag/cmd/swag@latest +$STD /root/go/bin/swag init -g cmd/main.go -o swagger $STD env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o postgresus ./cmd/main.go mv /opt/postgresus/backend/postgresus /opt/postgresus/postgresus mkdir -p /opt/postgresus/{data,backups,logs}