#!/bin/sh # gettext domain TEXTDOMAIN="lliurex-up" export TEXTDOMAIN COMMON_LIBRARY="/usr/share/lliurex-up/common-upgrade-vars.sh" if [ -r $COMMON_LIBRARY ] ; then . $COMMON_LIBRARY fi #gettext messages INFO_MESSAGE="$(gettext "Fixed GPG for LliureX")" # Methods _info() { echo "$INFO_MESSAGE" } _usage() { echo "# Unknown argument" } _migrate() { rc=0 key="9A27AA33" sudo apt-key list| grep -q "$key" || rc=1 if [ $rc -eq 1 ] ; then sudo rm /var/lib/apt/lists/* -vf sudo apt-get update sudo apt-get -y --force-yes ubuntu-keyring fi } _die() { echo "Error: $1" exit 1 } ACTION="$1" case "$ACTION" in migrate) _migrate ;; info) _info ;; *) _usage ;; esac exit 0