summarylogtreecommitdiffstats
path: root/galileo.install
blob: 7b8311f208eee6e3dce45f8453e465ce89ed5f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"
    echo "For synchronizing without dongle, through bluetooth, run :"
    echo "galileo --bluetooth PyDBUS --verbose --database RemoteRESTDatabase"
}

post_install() {
    post_upgrade
}

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