diff --git a/install/postgresus-install.sh b/install/postgresus-install.sh index 4624fd330..bca3cd9f7 100644 --- a/install/postgresus-install.sh +++ b/install/postgresus-install.sh @@ -31,11 +31,10 @@ $STD npm ci $STD npm run build cd /opt/postgresus/backend $STD go mod download -$STD go build -o ../postgresus ./cmd/main.go -cd /opt/postgresus +$STD go build -o /opt/postgresus/postgresus ./cmd/main.go mkdir -p /opt/postgresus/{data,backups,logs} -cp -r frontend/dist /opt/postgresus/ui -cp -r backend/migrations /opt/postgresus/ +cp -r /opt/postgresus/frontend/dist /opt/postgresus/ui +cp -r /opt/postgresus/backend/migrations /opt/postgresus/ chown -R postgres:postgres /opt/postgresus msg_ok "Built Postgresus"