Host dependencies fix. Aptly from (any) distribution is too old. Adding author repository and update from there.

This commit is contained in:
Igor Pecovnik
2017-10-15 23:22:01 +02:00
parent 69fc1cdebf
commit e2d94b5055

View File

@@ -527,6 +527,15 @@ prepare_host()
if ! grep -q -x -e "$packet" <<< "$installed"; then deps+=("$packet"); fi
done
# distribution packages are buggy, download from author
if [[ ! -f /etc/apt/sources.list.d/aptly.list ]]; then
display_alert "Updating from external repository" "aptly" "info"
wget -qO - https://www.aptly.info/pubkey.txt | sudo apt-key add - >/dev/null 2>&1
echo "deb http://repo.aptly.info/ squeeze main" > /etc/apt/sources.list.d/aptly.list
apt-get -qq update
apt-get install aptly
fi
# sync clock
if [[ $SYNC_CLOCK != no ]]; then
display_alert "Syncing clock" "host" "info"