/ first working (?) version
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# config postgrest / frode klevstul / oct 2025
|
# add postgrest as a systemd service / frode klevstul / oct 2025
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
if ! [ -f "/etc/systemd/system/postgrest.service" ]
|
if ! [ -f "/etc/systemd/system/postgrest.service" ]
|
||||||
@@ -10,7 +10,7 @@ then
|
|||||||
useradd -M -U -d /nonexistent -s /usr/sbin/nologin postgrest
|
useradd -M -U -d /nonexistent -s /usr/sbin/nologin postgrest
|
||||||
|
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget https://gt.op.fo/fro/srv-pub/raw/branch/trunk/cfg/pgr/postgrest.service
|
wget -O postgrest.service https://gt.op.fo/fro/srv-pub/raw/branch/trunk/cfg/pgr/postgrest.service
|
||||||
cp postgrest.service /etc/systemd/system/
|
cp postgrest.service /etc/systemd/system/
|
||||||
|
|
||||||
systemctl enable postgrest
|
systemctl enable postgrest
|
||||||
|
|||||||
Reference in New Issue
Block a user