ref: replace 'whoami' with 'id -u -n' for POSIX compatibility

This commit is contained in:
Shuchit
2024-12-15 06:03:30 +00:00
committed by AJ ONeal
parent c94b4cf5c7
commit 1f3e7b5bf0
8 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ To enable Postgres as a Linux Service with [serviceman](../serviceman/): \
```sh
sudo env PATH="$PATH" \
serviceman add --system --username "$(whoami)" --name 'postgres' -- \
serviceman add --system --username "$(id -u -n)" --name 'postgres' -- \
postgres -D ~/.local/share/postgres/var -p 5432
sudo systemctl restart systemd-journald
@@ -120,7 +120,7 @@ curl https://webi.sh/serviceman | sh
```sh
sudo env PATH="$PATH" \
serviceman add --system --username "$(whoami)" --name 'postgres' -- \
serviceman add --system --username "$(id -u -n)" --name 'postgres' -- \
postgres -D ~/.local/share/postgres/var -p 5432
sudo systemctl restart systemd-journald