summarylogtreecommitdiffstats
path: root/serpro-signer.install
blob: 1f1d1ef3fea524c15ab65cc8a9e6cf90f60aa36b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
    if  grep 'assinador-desktop.serpro.gov.br' /etc/hosts > /dev/null
        then
            if [ "$(cat /etc/locale.conf | grep "LANG")" = "LANG=pt_BR.UTF-8" ] ;then
                echo -e "\e[34;1m==>\e[39;1m Url do certificado já existe. \e[0m"
            else
                echo -e "\e[34;1m==>\e[39;1m Certificate url already exists. \e[0m"
            fi
        else
            echo "127.0.0.1	assinador-desktop.serpro.gov.br" >> /etc/hosts
    fi
}

post_upgrade() {
    post_install
}