summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorkpcyrd <git@rxv.cc>2017-11-18 20:10:33 +0100
committerHolger Levsen <holger@layer-acht.org>2017-11-18 19:12:29 +0000
commit4388d6d550dee3b8d84277866b6654e26a06001a (patch)
treed177f2b4d11420648fcb8c0a9da9022ec5702e59 /bin
parenta759ecd5bc0c84af96bae90e2863219383343ef0 (diff)
downloadjenkins.debian.net-4388d6d550dee3b8d84277866b6654e26a06001a.tar.xz
reproducible-archlinux: use $ROOTCMD properly
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_setup_archlinux_schroot.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_setup_archlinux_schroot.sh b/bin/reproducible_setup_archlinux_schroot.sh
index 543fb33c..7cee3f6d 100755
--- a/bin/reproducible_setup_archlinux_schroot.sh
+++ b/bin/reproducible_setup_archlinux_schroot.sh
@@ -165,11 +165,11 @@ Include = /etc/pacman.d/mirrorlist
Include = /etc/pacman.d/mirrorlist
__END__
-sudo sed -i "s/^PKGEXT='.pkg.tar.gz'/PKGEXT='.pkg.tar.xz'/" "$SCHROOT_BASE/$TARGET/etc/makepkg.conf"
+$ROOTCMD sed -i "s/^PKGEXT='.pkg.tar.gz'/PKGEXT='.pkg.tar.xz'/" /etc/makepkg.conf
if [ "$HOSTNAME" = "profitbricks-build4-amd64" ] ; then
# disable signature verification so packages won't fail to install when setting the time to +$x years
- sudo sed -i 's/^#?SigLevel\s*=.*/SigLevel = Never/' "$SCHROOT_BASE/$TARGET/etc/pacman.conf"
+ $ROOTCMD sed -i 's/^#?SigLevel\s*=.*/SigLevel = Never/' /etc/pacman.conf
fi
echo "schroot $TARGET set up successfully in $SCHROOT_BASE/$TARGET - exiting now."