summarylogtreecommitdiffstats
path: root/agisoft-delighter.install
blob: 84af1a236c7b58a57035ee8226f2fa314d3f92d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
post_install() {
    # Set the correct permission
    chmod -R g=u /opt/agisoft/delighter
    chmod -R o=u /opt/agisoft/delighter
    chmod -R g-w /opt/agisoft/delighter
    chmod -R o-w /opt/agisoft/delighter
    chmod -R g=u /usr/share/licenses/agisoft-delighter/licenses
    chmod -R o=u /usr/share/licenses/agisoft-delighter/licenses
    chmod -R g-w /usr/share/licenses/agisoft-delighter/licenses
    chmod -R o-w /usr/share/licenses/agisoft-delighter/licenses
    echo
    echo "The launcher is called agisoft-delighter"
    echo
}

post_remove() {
    rm -rf /opt/agisoft/delighter
    rm -d /opt/agisoft 2>/dev/null
    echo
    echo "The users data were kept at the below locations"
    echo "\$HOME/.agisoft"
    echo "\$HOME/.config/Agisoft"
    echo "\$HOME/.local/share/Agisoft"
    echo
}