Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e7ffeda5e | |||
| 7b292d218b | |||
| 25b9b02df2 |
2
Makefile
2
Makefile
@@ -2,7 +2,7 @@ NAME = netoik-db
|
|||||||
VERSION = $(shell git describe --abbrev=0)
|
VERSION = $(shell git describe --abbrev=0)
|
||||||
RELEASE = $(shell git rev-parse --short HEAD)
|
RELEASE = $(shell git rev-parse --short HEAD)
|
||||||
ARCH = noarch
|
ARCH = noarch
|
||||||
OWNER = samuel
|
OWNER = netoik
|
||||||
SUMMARY = "Netoïk Database Management System"
|
SUMMARY = "Netoïk Database Management System"
|
||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
URL = "https://git.netoik.io/$(OWNER)/$(NAME)"
|
URL = "https://git.netoik.io/$(OWNER)/$(NAME)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Netoïk Database 
|
# Netoïk Database 
|
||||||
|
|
||||||
Build an RPM package which will install the DBMS called Postgresql with custom configuration.
|
Build an RPM package which will install the DBMS called Postgresql with custom configuration.
|
||||||
|
|
||||||
@@ -57,8 +57,8 @@ Some commands to deploy the RPM package on server
|
|||||||
|
|
||||||
- Add Gitea repo to your repo list:
|
- Add Gitea repo to your repo list:
|
||||||
```shell
|
```shell
|
||||||
dnf config-manager --add-repo https://git.netoik.io/api/packages/samuel/rpm.repo
|
dnf config-manager --add-repo https://git.netoik.io/api/packages/netoik/rpm.repo
|
||||||
dnf repolist | grep gitea-samuel
|
dnf repolist | grep gitea-netoik
|
||||||
```
|
```
|
||||||
|
|
||||||
- Show available versions:
|
- Show available versions:
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ Install the database management system called postgresql with a predefined confi
|
|||||||
chown postgres:postgres "%{_rundir}/postgresql"
|
chown postgres:postgres "%{_rundir}/postgresql"
|
||||||
|
|
||||||
# Init cluster if necessary
|
# Init cluster if necessary
|
||||||
runuser --user=postgres -- if [ ! -f $PGDATA/PG_VERSION ]; then postgresql-setup --initdb; fi
|
runuser --user=postgres -- [ -f $PGDATA/PG_VERSION ] || postgresql-setup --initdb
|
||||||
|
|
||||||
# Restart services
|
# Restart services
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|||||||
Reference in New Issue
Block a user