summarylogtreecommitdiffstats
path: root/galileo.install
blob: 8ef2b3e50cf0a9e42c40b9f6127351901c401efb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_upgrade() {
    # We assume group cannot exists if user is not there.
    getent passwd galileo &>/dev/null || useradd -U -r -s /usr/bin/nologin galileo >/dev/null
    echo "You should consider adding yourself to the group galileo to run it without root priviledges."
    echo "[sudo] gpasswd -a <yourself> galileo"
}

post_install() {
    post_upgrade
}

post_remove() {
    userdel galileo >/dev/null
    groupdel galileo >/dev/null
}