blob: 3375665def673a2830e65120660ffee0b642bb7e (
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
|
post_install() {
grpfiles=("/usr/share/caster-demo/status" "/usr/share/caster-demo/checks.log" "/usr/share/caster-demo/log.txt")
grpdirs=("/usr/share/caster-demo/save/" "/usr/share/caster-demo/")
touch ${grpfiles[@]}
touch ${grpdirs[@]}
chgrp games ${grpfiles[@]} ${grpdirs[@]}
chmod 664 ${grpfiles[@]}
chmod 775 ${grpdirs[@]}
echo '--------------------------------------------------'
echo 'You *MUST* read and agree to the license stored in'
echo '/usr/share/caster-demo/LICENSE.txt before using it'
echo '--------------------------------------------------'
echo "Add user to group games to make the game playable. Please note that this application is not multi user friendly."
echo "Note: If you purchased a full version of the game just overwrite the files in /usr/share/caster/demo/data and optionally edit /usr/share/applications/caster-demo.desktop"
/bin/true
}
post_upgrade() {
/bin/true
}
pre_remove() {
/bin/true
}
op=$1
shift
$op "$@"
|