Bug #3028
Updated by bill-auger almost 3 years ago
Today I tried to install postgresql and I ran into the following issues/bugs
<pre>
(2/2) Creating temporary files...
/usr/bin/tmpfiles: 62: test: unexpected operator
</pre>
My /usr/bin/tmpfiles line 62 had:
<pre>
test "$fstype" == 'btrfs' || return 0
</pre>
Changing it to the below code allowed me to install postgresql
<pre>
"$fs_type" = 'btrfs' || return 0
</pre>
When trying to initialized the postgresql-openrc service I got the error message
<pre>
/var/lib/postgres/data/postgresql.conf not found
* HINT: mv /var/lib/postgres/data/*.conf /var/lib/postgres/data/
</pre>
This HINT is wrong since the /var/lib/postgres/data directory is empty, and what should be ran is:
<pre>
sudo -u postgres -s /bin/bash
initdb -D /var/lib/postgres/data
</pre>
And then you can start the openrc service with
<pre>
rc-update add postgresql default
rc-service postgresql start
</pre>
submitting theses bugs as advised by bill-auger from irc who assisted me with clarifying the inconsistencies.
<pre>
(2/2) Creating temporary files...
/usr/bin/tmpfiles: 62: test: unexpected operator
</pre>
My /usr/bin/tmpfiles line 62 had:
<pre>
test "$fstype" == 'btrfs' || return 0
</pre>
Changing it to the below code allowed me to install postgresql
<pre>
"$fs_type" = 'btrfs' || return 0
</pre>
When trying to initialized the postgresql-openrc service I got the error message
<pre>
/var/lib/postgres/data/postgresql.conf not found
* HINT: mv /var/lib/postgres/data/*.conf /var/lib/postgres/data/
</pre>
This HINT is wrong since the /var/lib/postgres/data directory is empty, and what should be ran is:
<pre>
sudo -u postgres -s /bin/bash
initdb -D /var/lib/postgres/data
</pre>
And then you can start the openrc service with
<pre>
rc-update add postgresql default
rc-service postgresql start
</pre>
submitting theses bugs as advised by bill-auger from irc who assisted me with clarifying the inconsistencies.