2 Commits

Author SHA1 Message Date
0483f61904 fix: create sock directory if not existing
Some checks failed
Continuous Delivery / build_n_upload (push) Has been cancelled
2026-02-23 00:05:14 +01:00
ac5a23350d fix: add systemctl restart
Some checks failed
Continuous Delivery / build_n_upload (push) Has been cancelled
2026-02-22 22:57:20 +01:00

View File

@@ -22,9 +22,13 @@ Install the database management system called postgresql with a predefined confi
%make_install %make_install
%post %post
# Create sock directory if not existing
mkdir --parents "%{_rundir}/postgresql"
# Restart services # Restart services
systemctl daemon-reload systemctl daemon-reload
systemctl reenable --now postgresql.service systemctl reenable postgresql.service
systemctl restart postgresql.service
# Create databases and users from DB_USERS variable (separator is ",") if not existing # Create databases and users from DB_USERS variable (separator is ",") if not existing
IFS="," read -ra users <<< "$DB_USERS"; IFS="," read -ra users <<< "$DB_USERS";