diff options
author | kpcyrd <git@rxv.cc> | 2017-11-13 00:38:09 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-11-12 23:59:30 +0000 |
commit | acf930394e3f459121c6084669db3a7cd819ffad (patch) | |
tree | c679dacf2858501ebdf4d93fcf56ea3cd9825b7d | |
parent | 1bc5d49bf8a4d7b39e519eeb2a4baf457c9f3453 (diff) | |
download | jenkins.debian.net-acf930394e3f459121c6084669db3a7cd819ffad.tar.xz |
reproducible-archlinux: pacman.conf is owned by root after upgrade
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_setup_archlinux_schroot.sh | 4 |
1 files 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." |