blob: 8730c5ddca89b91c73569594aae5fe20fb74406d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/sh
_group="${1:-games}"
getent group $_group &> /dev/null
if [ $? != 0 ]; then
echo "group '$_group' not found";
echo "${0##/} [group] default: games"
exit 1
fi
# fix permissions
chgrp -R $_group /opt/constructor/{savegame,settings/setsnd.cfg,settings/system.ini}
chmod -R g+w /opt/constructor/{savegame,settings/setsnd.cfg,settings/system.ini}
|