aurutils/scripts/init-aur

15 lines
327 B
Plaintext
Raw Permalink Normal View History

2022-06-12 16:30:01 +00:00
#!/bin/bash
BUILD_REPO="file:///home/build"
if ! grep -q "$BUILD_REPO" /etc/pacman.conf; then
sudo bash -c "echo -e '[build]\nSigLevel = Optional TrustAll\nServer = $BUILD_REPO' >> /etc/pacman.conf"
if ! [ -f /home/build/build.db.tar.gz ]; then
repo-add /home/build/build.db.tar.gz
fi
sudo pacman -Sy --noconfirm
fi