Compare commits

...

1 Commits

Author SHA1 Message Date
dd079c4ef2 pg 2026-01-03 21:55:47 +00:00
4 changed files with 23 additions and 1 deletions

View File

@@ -6,10 +6,11 @@ PACKAGES=(
linux base linux-firmware lvm2 sudo polkit # base
pulseaudio pulseaudio-bluetooth bluez bluez-utils networkmanager udisks2 # device management
openssh rsync strace sysstat htop screen man-db which # system
openssh rsync strace sysstat htop screen man-db which dnsutils # system
nodejs dash jq # runtime
qemu-system-x86 # virt
postgresql #db
rlwrap fzf # shell helpers
vifm vim less # nav & edit

16
arch-user/bin/postgres/start.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -eo pipefail
if [ "$1" != "foreground" ]; then
exec ~/.local/bin/screen/detach.sh postgres "$0" foreground
fi
version="$(pg_config --version | sed -n 's/^PostgreSQL \([0-9]*\).*/\1/p')"
export PGDATA=~/know/db/"$version"
mkdir -p "$PGDATA"
if [ ! -f "$PGDATA/postgresql.conf" ]; then
initdb
fi
postgres -c "unix_socket_directories=/run/user/$(id -u)" -c "listen_addresses=" -c "io_method=sync"

4
arch-user/bin/psql.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
set -e
psql -h "/run/user/$(id -u)" "$1"

View File

@@ -0,0 +1 @@
max-items 50