server-scripts/lxc-gem2arch

12 lines
299 B
Plaintext
Raw Normal View History

2016-11-25 20:21:58 +00:00
#!/bin/bash
if [ $EUID -ne 0 ]; then
echo "Must be root!" >&2
exit 1
fi
cd "${DIR:-/tmp}"
lxc-attach --name login -- sudo -u aurrepo -- aurrepo --sign --verbose
lxc-attach --name login -- sudo -u aurrepo -- gem2arch "$@"
lxc-attach --name login -- sudo -u aurrepo -- aurrepo --sign --verbose