sync build tree from private myoffice

This commit is contained in:
myoffice-sync
2026-08-05 13:37:48 +00:00
parent e9534034ee
commit 76c3da36cd
3 changed files with 62 additions and 13 deletions
+3 -2
View File
@@ -29,10 +29,11 @@ msg() { echo -e " ==> $*"; }
as_postgres() {
# Script runs as root in CT; sudo is not installed.
# cd away from /root — postgres cannot access it (harmless but noisy otherwise).
if command -v runuser >/dev/null 2>&1; then
runuser -u postgres -- "$@"
(cd /tmp && runuser -u postgres -- "$@")
else
su -s /bin/bash postgres -c "$*"
(cd /tmp && su -s /bin/bash postgres -c "$(printf '%q ' "$@")")
fi
}