diff options
Diffstat (limited to 'audio/squeezecenter/pkg-install')
-rw-r--r-- | audio/squeezecenter/pkg-install | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/squeezecenter/pkg-install b/audio/squeezecenter/pkg-install index aaf7fbd5923d..a4141e4262fa 100644 --- a/audio/squeezecenter/pkg-install +++ b/audio/squeezecenter/pkg-install @@ -10,6 +10,7 @@ shell=/sbin/nologin comment="Slim Devices SlimServer pseudo-user" statedir=/var/db/slimserver cachedir=${statedir}/cache +playlistdir=${statedir}/playlists pidfile=/var/run/${name}.pid newsyslogfile=/etc/newsyslog.conf logfile=/var/log/slimserver.log @@ -49,6 +50,10 @@ POST-INSTALL) mkdir -p ${cachedir} chown -R ${u}:${g} ${cachedir} fi + if [ ! -d ${playlistdir} ]; then + mkdir -p ${playlistdir} + chown -R ${u}:${g} ${playlistdir} + fi if egrep -q "^${logfile}\>" ${newsyslogfile}; then echo "Using existing ${newsyslogfile} entry." else |