Update postgresus-install.sh
This commit is contained in:
parent
16b805e466
commit
d63293ef11
@ -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"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user