From a908a7d4ab6aebc571880bb5190c992b977c5812 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 17 Oct 2015 14:45:50 +0200 Subject: reproducible arch: use /etc/profile.d/proxy.sh for all bash shells --- bin/reproducible_arch_schroot_setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/reproducible_arch_schroot_setup.sh b/bin/reproducible_arch_schroot_setup.sh index d9a78e3e..6633346e 100755 --- a/bin/reproducible_arch_schroot_setup.sh +++ b/bin/reproducible_arch_schroot_setup.sh @@ -79,6 +79,9 @@ tee $SCHROOT_BASE/$TARGET/etc/profile.d/proxy.sh <<-__END__ __END__ chmod 755 $SCHROOT_BASE/$TARGET/etc/profile.d/proxy.sh +# configure root user to use this for shells and login shells… +echo ". /etc/profile.d/proxy.sh" | tee -a $SCHROOT_BASE/$TARGET/root/.bashrc + # configure pacman $ROOTCMD pacman-key --init $ROOTCMD pacman-key --populate archlinux @@ -93,6 +96,7 @@ echo 'jenkins ALL= NOPASSWD: /usr/sbin/pacman *' | $ROOTCMD tee -a /etc/sudoers # configure jenkins user $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 -- cgit v1.2.3-70-g09d2