server-scripts/lxc-makepkg

15 lines
223 B
Plaintext
Raw Permalink Normal View History

2018-09-13 07:43:21 +00:00
#!/usr/bin/env bash
if [ $EUID -ne 0 ]; then
echo "Must be root!" >&2
exit 1
fi
lxc-attach --name login -- sudo -s -u aurrepo -- <<EOF
set -ex
cd "${DIR:-/}"
aurrepo --sign
makepkg --noconfirm "$@"
aurrepo --sign
EOF