mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
ref: replace 'whoami' with 'id -u -n' for POSIX compatibility
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user