summarylogtreecommitdiffstats
path: root/agisoft-metashape-pro.install
blob: 30721a7e14fce1bc6d1eb83b3c67b58133e50d84 (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
post_install() {
    # Remind the user the activate the product 
    echo
    echo "The launcher is called agisoft-metashape-pro"
    echo
    echo "Run the following command to activate the product"
    echo
    echo "sudo agisoft-metashape-pro --activate 11111-22222-33333-44444-55555"
    echo
    echo "NOTE: the number after "--activate" is your node-locked license"
    echo
}

pre_remove() {
    echo "Deactivating the product..."
    agisoft-metashape-pro --deactivate 2>/dev/null
}

post_remove() {
    rm -rf /opt/agisoft/metashape-pro
    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
}