/ first working (?) version

This commit is contained in:
fro
2025-10-28 13:01:10 -05:00
parent 423eae5a80
commit 19dbbcec5d

View File

@@ -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