From d558d526550734d072e040b0bbc302f49147afc7 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 18 May 2020 14:45:13 +0200 Subject: [PATCH] Allow modifications of pacman.conf Signed-off-by: Knut Ahlers --- run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/run.sh b/run.sh index 4ca216c..07ea7d1 100755 --- a/run.sh +++ b/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