blob: d3fc12dd6d38584c622cc00cafe4a9b903b63bc4 (
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
38
39
40
41
|
#!/hint/bash
post_install() {
check_chromium
welcome_message
}
post_upgrade() {
check_chromium
if ! [ -f /opt/bbb-recorder/.env ]
then
welcome_message
fi
}
post_remove() {
if [ -e /opt/bbb-recorder/.env ]
then
echo "Configuration file /opt/bbb-recorder/.env is left and can be removed."
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
}
|