diff options
Diffstat (limited to 'dwarffortress-obsidian.install')
-rw-r--r-- | dwarffortress-obsidian.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dwarffortress-obsidian.install b/dwarffortress-obsidian.install new file mode 100644 index 000000000000..11ae453a77cb --- /dev/null +++ b/dwarffortress-obsidian.install @@ -0,0 +1,16 @@ +## arg 1: the new package version +post_install() { + echo "Make sure to add your user to the games group to play dwarffortress" + post_upgrade $1 0 +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + # Make sure that permissions are correct + chown -R root:games /opt/df_linux/data + find /opt/df_linux/data/save -type d -exec chmod 775 {} + & + find /opt/df_linux/data/save -type f -exec chmod 664 {} + & +} + +# vim:set ts=2 sw=2 et: |