diff options
Diffstat (limited to 'update_jdn.sh')
-rwxr-xr-x | update_jdn.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/update_jdn.sh b/update_jdn.sh index d474ca60..40605a3d 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -162,7 +162,7 @@ if [ -f /etc/debian_version ] ; then bpi0|hb0|profitbricks-build5-amd64|profitbricks-build6-amd64) DEBS="$DEBS ntpdate" ;; *) ;; esac - # needed to run coreboot/openwrt/netbsd jobs + # needed to run coreboot/openwrt/netbsd/fedora jobs case $HOSTNAME in profitbricks-build3-amd64) DEBS="$DEBS bison @@ -183,6 +183,7 @@ if [ -f /etc/debian_version ] ; then kgb-client m4 make + mock python3-yaml subversion sysvinit-core @@ -237,7 +238,6 @@ if [ -f /etc/debian_version ] ; then libvpx1 libxslt1-dev linux-image-amd64 - mock moreutils mr mtr-tiny @@ -308,6 +308,16 @@ if [ -f /etc/debian_version ] ; then fi # +# prepare mock to build rpms +# +if [ "$HOSTNAME" = "profitbricks-build3-amd64" ] ; then + if ! grep mock /etc/group ; then + groupadd --system mock + usermod -a -G mock jenkins + fi +fi + +# # deploy package configuration in /etc and /usr/local/ # cd $BASEDIR |