summaryrefslogtreecommitdiff
path: root/libre/xmms2/install.sh
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-10-22 12:34:03 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-10-22 12:34:03 -0500
commit908b7c065638f1431cffbedf4dd3fe77bf8816cc (patch)
treef126ea2d4849cefadc8af2ab7a7012944bdc9799 /libre/xmms2/install.sh
parent388247147d50b30ad39c7716d1d815f1439c1d9b (diff)
downloadabslibre-908b7c065638f1431cffbedf4dd3fe77bf8816cc.tar.gz
abslibre-908b7c065638f1431cffbedf4dd3fe77bf8816cc.tar.bz2
abslibre-908b7c065638f1431cffbedf4dd3fe77bf8816cc.zip
xmms2: add new package to [libre]
Diffstat (limited to 'libre/xmms2/install.sh')
-rw-r--r--libre/xmms2/install.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/libre/xmms2/install.sh b/libre/xmms2/install.sh
new file mode 100644
index 000000000..ca4e13f14
--- /dev/null
+++ b/libre/xmms2/install.sh
@@ -0,0 +1,10 @@
+post_install() {
+ getent group xmms2 > /dev/null || groupadd -r -g 46 xmms2
+ getent passwd xmms2 > /dev/null || useradd -r -u 46 -g xmms2 -d /var/lib/xmms2 -s /bin/false -G audio xmms2
+ usr/bin/systemd-tmpfiles --create xmms2.conf
+ true
+}
+
+post_upgrade() {
+ post_install
+} \ No newline at end of file