#!/bin/bash # LIST OF PACKAGES # In a client or a server machine # this preseed packages must be installed # before any upgrade # lliurex-up comes to save me! # # Some values LIST_OF_PACKAGES="lliurex-preseed-ocsagent" # # Migrate method (upgrade or dist-upgrade) _migrate() { apt-get -f install "$LIST_OF_PACKAGES" } # # Show info of command execution _show_info() { echo "Fix preseed under classroom model" } # MAIN script case $1 in migrate) _migrate ;; info) _show_info ;; *) ;; esac exit 0