summarylogtreecommitdiffstats
path: root/snapcast.install
blob: f3c0c8c453e781b773d21bc260da06e256e4e046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh

post_install() {
  echo ":: The default setup will create a pipe /tmp/snapfifo."
  echo "   Due to recent changes in systemd, pipes in /tmp are by default only"
  echo "   writable by the owning user (here: sysuser snapserver)."
  echo "   The safest option is to change the location of the fifo to a"
  echo "   different location, e.g. /run/snapserver.  This can be done by"
  echo "   editing /etc/snapserver.conf"
  echo "   Another possible workaround is to disable the sysctl feature by"
  echo "   running:"
  echo "     # sysctl fs.protected_fifos=0"
  echo ":: Snapcast now has a built-in snapweb control client which is enabled"
  echo "   by default on a new setup.  This functionality enables a webserver"
  echo "   on port 1780.  This can be controlled by the doc_root variable in"
  echo "   /etc/snapserver.conf."
}

post_upgrade() {
  echo ":: The default setup will create a pipe /tmp/snapfifo."
  echo "   Due to recent changes in systemd, pipes in /tmp are by default only"
  echo "   writable by the owning user (here: sysuser snapserver)."
  echo "   The safest option is to change the location of the fifo to a"
  echo "   different location, e.g. /run/snapserver.  This can be done by"
  echo "   editing /etc/snapserver.conf"
  echo "   Another possible workaround is to disable the sysctl feature by"
  echo "   running:"
  echo "     # sysctl fs.protected_fifos=0"
  echo ":: Snapcast now has a built-in snapweb control client which is enabled"
  echo "   by default on a new setup.  This functionality enables a webserver"
  echo "   on port 1780.  This can be controlled by the doc_root variable in"
  echo "   /etc/snapserver.conf."

  # return if old package version greater 10.4...
  (( $(vercmp $2 '0.15.0') > 0 )) && return

  echo ":: The snapserver configuration layout has changed!"
  echo "   -> Most of the configuration has moved from /etc/default/snapserver"
  echo "      to /etc/snapserver.conf."
}