diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/dopewars/dopewars.install | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/dopewars/dopewars.install')
-rw-r--r-- | community/dopewars/dopewars.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/community/dopewars/dopewars.install b/community/dopewars/dopewars.install new file mode 100644 index 000000000..2801fc338 --- /dev/null +++ b/community/dopewars/dopewars.install @@ -0,0 +1,20 @@ +post_install() { + if [ ! -e /var/games/dopewars.sco ]; then + mkdir -p /var/games + touch /var/games/dopewars.sco + chown root:games /var/games/dopewars.sco + chmod 664 /var/games/dopewars.sco + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + if [ -e /var/games/dopewars.sco ]; then + rm /var/games/dopewars.sco + fi +} + +# vim:set ts=2 sw=2 et: |