summarylogtreecommitdiffstats
path: root/recultis.install
blob: 2f3af169e023d9573658e9c8bf372a202d5e31d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pre_install() {
    post_remove
}

post_install()  {
    sudo chmod 755 /opt/Recultis
    sudo echo "python /opt/Recultis/main.py" > /usr/bin/recultis
    sudo chmod 755 /usr/bin/recultis
}

post_remove()   {
    sudo rm -rf /opt/Recultis
    sudo rm -rf /usr/bin/recultis
    sudo rm -rf /usr/share/applications/recultis.desktop
}

pre_upgrade()   {
    post_remove
}

post_upgrade()  {
    post_install
}