summarylogtreecommitdiffstats
path: root/bbb-recorder.install
blob: bf4f35f672a03c7d3b4f34d89c6163535208dfe7 (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
#!/hint/bash

post_install() {
    check_chromium
    welcome_message
}

post_upgrade() {
    check_chromium
    if ! [ -f /opt/bbb-recorder/.env ]
    then
        welcome_message
    fi
}

welcome_message() {
    post_upgrade
    echo ""
    echo ">>> Prior to usage, you must create the configuration file:"
    echo ">>> /opt/bbb-recorder/.env"
    echo ""
    echo ">>> You can take the file /opt/bbb-recorder/.env.example"
    echo ""
}

check_chromium() {
    if ! [ -f /usr/bin/chromium ]; then
        echo ""
        echo "This package calls /usr/bin/chromium, which does not exist on you system!"
        echo "Install the chromium package, or place a symlink with that exact name to a chromium based browser."
        echo "Or instead you can also change the prepare() function in the PKGBUILD when building this package."
        echo ""
    fi
}