summarylogtreecommitdiffstats
path: root/agisoft-delighter.install
blob: f8eb9ac5fbd93b454d4432f514c29b17d380d4b2 (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
26
27
28
29
30
31
32
33
34
35
36
37
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_upgrade() {
    # 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
}

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
}