debian/mopidy-local.postinst
raw| 1 | #!/bin/sh |
| 2 | # postinst script for mopidy-local |
| 3 | |
| 4 | set -e |
| 5 | |
| 6 | . /usr/share/debconf/confmodule |
| 7 | |
| 8 | #DEBHELPER# |
| 9 | |
| 10 | case "$1" in |
| 11 | configure|reconfigure) |
| 12 | chown mopidy:audio /var/lib/mopidy/local |
| 13 | chown mopidy:audio /var/lib/mopidy/media |
| 14 | ;; |
| 15 | |
| 16 | abort-upgrade|abort-remove|abort-deconfigure) |
| 17 | ;; |
| 18 | |
| 19 | *) |
| 20 | echo "postinst called with unknown argument \`$1'" >&2 |
| 21 | exit 1 |
| 22 | ;; |
| 23 | esac |
| 24 | |
| 25 | exit 0 |