server-scripts/lxc-yaourt

14 lines
370 B
Plaintext
Raw Normal View History

2018-09-13 07:43:21 +00:00
#!/usr/bin/env bash
2015-06-22 15:16:44 +00:00
if [ $EUID -ne 0 ]; then
echo "Must be root!" >&2
exit 1
fi
2018-09-13 07:43:21 +00:00
cd /
export PATH=$PATH:/usr/local/bin CWD=/
2016-11-25 20:21:58 +00:00
lxc-attach --name login -- sudo -u aurrepo -- aurrepo --sign --verbose
2018-09-13 07:43:21 +00:00
lxc-attach --name login -- sudo -u aurrepo -- yaourt "$@"
2016-11-25 20:21:58 +00:00
lxc-attach --name login -- sudo -u aurrepo -- aurrepo --sign --verbose
2015-06-22 15:16:44 +00:00
lxc-attach --name login -- pacman -Sy