diff options
Diffstat (limited to 'holyspirit.install')
-rw-r--r-- | holyspirit.install | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/holyspirit.install b/holyspirit.install index 1eb07338ec80..948d2fe9a31f 100644 --- a/holyspirit.install +++ b/holyspirit.install @@ -1,3 +1,14 @@ +logfile="/opt/share/games/holyspirit/Log.txt" + post_install() { echo "Add yourself to the games group and relog to play holyspirit" + if [ ! -e "$logfile" ]; then + touch "$logfile" + chgrp games "$logfile" + chmod g+w "$logfile" + fi +} + +pre_remove() { + rm -f "$logfile" } |