#!/bin/sh

# exit on any error
set -e

# verbose, print cmds
set -x

#DEBIAN_FRONTEND=noninteractive apt-get -t wheezy-backports -y install pixelated-dispatcher linux-image-amd64 lxc-docker
DEBIAN_FRONTEND=noninteractive apt-get -t wheezy-backports -y install pixelated-dispatcher linux-image-3.16.0-0.bpo.4-amd64 lxc-docker

echo "==============================================="
echo "Pinning SSL Fingerprint"
echo "==============================================="
FINGERPRINT=$(openssl x509 -in /etc/ssl/certs/ssl-cert-snakeoil.pem -noout -fingerprint -sha1 | cut -d'=' -f 2)
echo "PIXELATED_MANAGER_FINGERPRINT=$FINGERPRINT" >> /etc/default/pixelated-dispatcher-proxy
cat /etc/default/pixelated-dispatcher-proxy

echo "==============================================="
echo "cleaning up"
echo "==============================================="
rm -f /etc/apt/apt.conf.d/01-apt-cacher
apt-get update
apt-get -f install
sync
sleep 10

#!/bin/sh

# exit on any error
set -e

# verbose, print cmds
set -x

DEBIAN_FRONTEND=noninteractive apt-get -t wheezy-backports -y install pixelated-dispatcher linux-image-amd64 lxc-docker

echo "==============================================="
echo "Pinning SSL Fingerprint"
echo "==============================================="
FINGERPRINT=$(openssl x509 -in /etc/ssl/certs/ssl-cert-snakeoil.pem -noout -fingerprint -sha1 | cut -d'=' -f 2)
echo "PIXELATED_MANAGER_FINGERPRINT=$FINGERPRINT" >> /etc/default/pixelated-dispatcher-proxy
cat /etc/default/pixelated-dispatcher-proxy

echo "==============================================="
echo "cleaning up"
echo "==============================================="
rm -f /etc/apt/apt.conf.d/01-apt-cacher
apt-get update
apt-get -f install
sync
sleep 10

Revert "install linux-image-3.16.0-0.bpo.4-amd64 directly, the linux-image-amd64 cannot get installed"
Revert "install linux-image-3.16.0-0.bpo.4-amd64 directly, the linux-image-amd64 cannot get installed"

This reverts commit 3bfbd5f16c2a83ae20a7aeb44d90c0830bfe0ba5.
