🔒 Repository is read-only – file editing is disabled.
123456789101112131415
#!/bin/bash
# Dopisuje brakujące podpisy GPG do pakietów w repo
set -e
REPO=/var/www/repo.paganlinux.eu/stable
KEY=A14CBE52BE0D63F5
n=0
for p in "$REPO"/*.pkg.tar.xz; do
[ -f "$p" ] || continue
if [ ! -f "$p.asc" ]; then
gpg --detach-sign --armor --batch --no-tty --local-user "$KEY" "$p" 2>/dev/null
n=$((n+1))
fi
done
echo "Podpisano: $n pakietów"
echo "Z podpisem: $(ls "$REPO"/*.pkg.tar.xz.asc 2>/dev/null | wc -l) / $(ls "$REPO"/*.pkg.tar.xz | wc -l)"