post_install() {
  if [ ! -d /usr/share/eyeballer/images ]; then
    echo ">"
    echo ">   Downloading the training data..."
    echo ">"

    wget 'https://www.dropbox.com/sh/7aouywaid7xptpq/AAD_-I4hAHrDeiosDAQksnBma?dl=1' -O /usr/share/eyeballer/eyeballer-training-data.zip


    cd /usr/share/eyeballer
    unzip eyeballer-training-data.zip
    unzip images.zip
    rm -v eyeballer-training-data.zip images.zip

    echo ">"
    echo ">   Training data downloaded."
    echo ">"
  fi
}

post_upgrade() {
  post_install "$@"
}
