summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_arch_schroot_setup.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-18 01:02:24 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-18 01:02:24 +0200
commitf92562f023b955f8b85277994bf0abe1701ab6aa (patch)
tree38adc7b7f447e0358a10549b59a35199d7c7a66f /bin/reproducible_arch_schroot_setup.sh
parent3b92eec58e1affe49bf6989b2722e8edab6c239f (diff)
downloadjenkins.debian.net-f92562f023b955f8b85277994bf0abe1701ab6aa.tar.xz
reproducible arch: run commands via bash to get the proxy settings
Diffstat (limited to 'bin/reproducible_arch_schroot_setup.sh')
-rwxr-xr-xbin/reproducible_arch_schroot_setup.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/reproducible_arch_schroot_setup.sh b/bin/reproducible_arch_schroot_setup.sh
index 4594667b..4beae5d6 100755
--- a/bin/reproducible_arch_schroot_setup.sh
+++ b/bin/reproducible_arch_schroot_setup.sh
@@ -84,13 +84,13 @@ chmod 755 $SCHROOT_BASE/$TARGET/etc/profile.d/proxy.sh
echo ". /etc/profile.d/proxy.sh" | tee -a $SCHROOT_BASE/$TARGET/root/.bashrc
# configure pacman
-$ROOTCMD pacman-key --init
-$ROOTCMD pacman-key --populate archlinux
+$ROOTCMD bash -c pacman-key --init
+$ROOTCMD bash -c pacman-key --populate archlinux
echo "Server = $ARCH_MIRROR/\$repo/os/\$arch" | tee -a $SCHROOT_BASE/$TARGET/etc/pacman.d/mirrorlist
-$ROOTCMD pacman -Syu --noconfirm
-$ROOTCMD pacman -S --noconfirm base-devel devtools abs
+$ROOTCMD bash -c pacman -Syu --noconfirm
+$ROOTCMD bash -c pacman -S --noconfirm base-devel devtools abs
# configure abs
-$ROOTCMD abs core extra
+$ROOTCMD bash -c abs core extra
# configure sudo
echo 'jenkins ALL= NOPASSWD: /usr/sbin/pacman *' | $ROOTCMD tee -a /etc/sudoers
@@ -98,7 +98,7 @@ echo 'jenkins ALL= NOPASSWD: /usr/sbin/pacman *' | $ROOTCMD tee -a /etc/sudoers
$ROOTCMD mkdir /var/lib/jenkins
$ROOTCMD chown -R jenkins:jenkins /var/lib/jenkins
echo ". /etc/profile.d/proxy.sh" | tee -a $SCHROOT_BASE/$TARGET/var/lib/jenkins/.bashrc
-$USERCMD gpg --check-trustdb # first run will create ~/.gnupg/gpg.conf
-$USERCMD gpg --recv-keys 0x091AB856069AAA1C
+$USERCMD bash -c gpg --check-trustdb # first run will create ~/.gnupg/gpg.conf
+$USERCMD bash -c gpg --recv-keys 0x091AB856069AAA1C
echo "schroot $TARGET set up successfully in $SCHROOT_BASE/$TARGET - exiting now."