mirror of
https://github.com/luzifer-docker/arch-repo-builder.git
synced 2024-12-20 17:41:19 +00:00
Allow modifications of pacman.conf
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
b45906c39d
commit
d558d52655
1 changed files with 8 additions and 0 deletions
8
run.sh
8
run.sh
|
@ -49,6 +49,14 @@ fi
|
|||
REPOADD_OPTS+=(--sign)
|
||||
}
|
||||
|
||||
if [ -e /config/pacman.conf ]; then
|
||||
# Allow full overwrite of pacman.conf
|
||||
cp /config/pacman.conf /etc/pacman.conf
|
||||
elif [ -e /config/pacman.conf.partial ]; then
|
||||
# Allow to provide a partial pacman.conf to append
|
||||
cat /config/pacman.conf.partial >>/etc/pacman.conf
|
||||
fi
|
||||
|
||||
# Update pacman index and any updated package
|
||||
pacman -Syyu --noconfirm
|
||||
|
||||
|
|
Loading…
Reference in a new issue