export TARGET_NAME=master
elif [ "$DISTRIBUTION" = "pre-staging" ] ; then
export TARGET_NAME=develop
+elif [[ "$DISTRIBUTION" = dev-feature* ]] ; then
+ export TARGET_NAME=$DISTRIBUTION
+ FEATURE_APTCMD="
+ echo \"deb http://alexandria.pb.local/dev-repository $DISTRIBUTION main contrib non-free\" \
+ > /etc/apt/sources.list.d/profitbricks-linux-image-storage-$DISTRIBUTION.list
+ "
else
- echo "DISTRIBUTION must be 'production-proposed-updates' or 'pre-staging', exiting."
+ echo "DISTRIBUTION must be 'production-proposed-updates', 'pre-staging', or 'dev-feature*'."
+ echo "exiting."
figlet "FAIL"
exit 1
fi
#/bin/bash
set -e
set -x
+$FEATURE_APTCMD
apt-get update
# grub is needed in the postinst...
apt-get install -y grub2
-apt-get -y install profitbricks-andbd-modules-storage profitbricks-linux-image-storage || true
+apt-get -y install profitbricks-andbd-modules-storage || true
+apt-get -t $DISTRIBUTION -y install profitbricks-linux-image-storage || true
mkdir -p $TARGET_DIR
export KERNEL_VERSION=###(ls /boot/vmlinu* | cut -d "-" -f2-)
export GENTOO_KERNEL_VERSION="###(ls /boot/vmlinu* | cut -d "-" -f2).$BUILD_NUMBER"