15 lines
421 B
Bash
Executable File
15 lines
421 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
if [[ "$#" < 1 ]]; then
|
|
echo "USAGE: $0 packages..."
|
|
fi
|
|
|
|
for pkg in "$@"
|
|
do
|
|
cp -- "$pkg" "/data/containers/login/rootfs/var/lib/aurrepo/"
|
|
name="$(basename $pkg)"
|
|
lxc-attach -n login -- sudo -u aurrepo gpg --detach-sign --no-armor "/var/lib/aurrepo/$name"
|
|
lxc-attach -n login -- pacman -U "/var/lib/aurrepo/$name"
|
|
lxc-attach -n login -- sudo -u aurrepo aurrepo --sign --verbose
|
|
done
|