summarylogtreecommitdiffstats
path: root/snapcast.install
diff options
context:
space:
mode:
authorBart De Vries2019-10-17 22:55:35 +0200
committerBart De Vries2019-10-18 16:29:01 +0200
commitae9804fd8108e5b773bcaa08f0e05057a9c98c5f (patch)
tree37c317d6d121a7c43332c12b26e1895f5d9b29d0 /snapcast.install
parentb87af9818bf510bb596a95c1faab93a832c6aac2 (diff)
downloadaur-ae9804fd8108e5b773bcaa08f0e05057a9c98c5f.tar.gz
Update to upstream version 0.16.0.
Diffstat (limited to 'snapcast.install')
-rw-r--r--snapcast.install26
1 files changed, 26 insertions, 0 deletions
diff --git a/snapcast.install b/snapcast.install
new file mode 100644
index 000000000000..4493febc0f11
--- /dev/null
+++ b/snapcast.install
@@ -0,0 +1,26 @@
+#!/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 " This is controlled by systclt fs.protected_fifos."
+ echo " A possible workaround is to disable the sysctl feature by running:"
+ echo " # sysctl fs.protected_fifos=0"
+}
+
+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 " This is controlled by systclt fs.protected_fifos."
+ echo " A possible workaround is to disable the sysctl feature by running:"
+ echo " # sysctl fs.protected_fifos=0"
+
+ # 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."
+}