File: mopidy.config

package info (click to toggle)
mopidy 3.4.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,616 kB
  • sloc: python: 16,656; sh: 159; makefile: 126
file content (21 lines) | stat: -rw-r--r-- 488 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# config script for mopidy

set -e

. /usr/share/debconf/confmodule

# If installing on a system where the package has previously been configured,
# check if the init script is active and set the debconf default accordingly.
if [ "$2" != "" ]; then
    if update-rc.d -n -f mopidy remove 2>&1 | grep -q -e rc.\.d/S..mopidy; then
        db_set mopidy/daemon true
    else
        db_set mopidy/daemon false
    fi
fi

db_input medium mopidy/daemon || true
db_go || true

exit 0