blob: 9e19542225716b70c0d5ca233718903119881c80 (
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
|
_create_files() {
# Ensure that these files exist and are writeable for 'games' group, but the package should not own them.
cd /var/lib/open-hexagon/
touch log.txt
chmod 664 log.txt
chown root:games log.txt
touch config.json
chmod 664 config.json
chown root:games config.json
touch scores.json
chmod 664 scores.json
chown root:games scores.json
touch users.json
chmod 664 users.json
chown root:games users.json
mkdir -p Replays
chmod 1775 Replays
chown root:games Replays
mkdir -p Profiles
chmod 1775 Profiles
chown root:games Profiles
}
post_upgrade() {
_create_files
}
post_install() {
_create_files
}
|