Update postgresus-install.sh

This commit is contained in:
CanbiZ 2025-12-11 14:00:45 +01:00
parent 16b805e466
commit d63293ef11

View File

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