Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debian: Move cache to /var when started from init script
- Loading branch information
Showing
5 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
etc/mopidy/extensions.d | ||
var/lib/mopidy/spotify | ||
var/cache/mopidy/spotify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[spotify] | ||
cache_dir = /var/cache/mopidy/spotify | ||
settings_dir = /var/lib/mopidy/spotify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
usr/share/mopidy | ||
debian/etc/spotify.conf etc/mopidy/extensions.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
# postinst script for mopidy-spotify | ||
|
||
set -e | ||
|
||
case "$1" in | ||
configure) | ||
# spotify.conf may contain passwords and other confidential information | ||
chown mopidy:root /etc/mopidy/extensions.d/spotify.conf | ||
chmod 640 /etc/mopidy/extensions.d/spotify.conf | ||
;; | ||
|
||
abort-upgrade|abort-remove|abort-deconfigure) | ||
;; | ||
|
||
*) | ||
echo "postinst called with unknown argument \`$'" >&2 | ||
exit 1 | ||
;; | ||
|
||
esac | ||
|
||
#DEBHELPER# | ||
|
||
exit 0 |