15 lines
327 B
Bash
Executable File
15 lines
327 B
Bash
Executable File
#!/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
|
|
|