From acf930394e3f459121c6084669db3a7cd819ffad Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Mon, 13 Nov 2017 00:38:09 +0100 Subject: reproducible-archlinux: pacman.conf is owned by root after upgrade Signed-off-by: Holger Levsen --- bin/reproducible_setup_archlinux_schroot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/reproducible_setup_archlinux_schroot.sh b/bin/reproducible_setup_archlinux_schroot.sh index 057797b6..3564335c 100755 --- a/bin/reproducible_setup_archlinux_schroot.sh +++ b/bin/reproducible_setup_archlinux_schroot.sh @@ -139,7 +139,7 @@ $USERCMD bash <<-__END__ $ROOTCMD sh -c 'yes | pacman -U /pacman-git/pacman-*-x86_64.pkg.tar.xz' # fix /etc/pacman.conf. pacman-git doesn't have any repos configured -cat >> $SCHROOT_BASE/$TARGET/etc/pacman.conf <<-__END__ +sudo tee -a $SCHROOT_BASE/$TARGET/etc/pacman.conf <<-__END__ #[testing] #Include = /etc/pacman.d/mirrorlist @@ -167,7 +167,7 @@ cat >> $SCHROOT_BASE/$TARGET/etc/pacman.conf <<-__END__ if [ "$HOSTNAME" = "profitbricks-build4-amd64" ] ; then # disable signature verification so packages won't fail to install when setting the time to +$x years - sed -i 's/^#?SigLevel\s*=.*/SigLevel = Never/' "$SCHROOT_BASE/$TARGET/etc/pacman.conf" + sudo sed -i 's/^#?SigLevel\s*=.*/SigLevel = Never/' "$SCHROOT_BASE/$TARGET/etc/pacman.conf" fi echo "schroot $TARGET set up successfully in $SCHROOT_BASE/$TARGET - exiting now." -- cgit v1.2.3-54-g00ecf