summarylogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authoraudiolinux2018-10-15 15:41:51 +0200
committeraudiolinux2018-10-15 15:41:51 +0200
commit10ec23be9b4338d116283e3e3b5d580fe54491d2 (patch)
tree95e9d5186efbb6788f279ecdf9f29bad1e78f524 /install
parent7010a882654686f7747d938d30893104faeb40d4 (diff)
downloadaur-10ec23be9b4338d116283e3e3b5d580fe54491d2.tar.gz
Added hqplayer user for systemd service
Diffstat (limited to 'install')
-rw-r--r--install12
1 files changed, 12 insertions, 0 deletions
diff --git a/install b/install
new file mode 100644
index 00000000000..524c051aed4
--- /dev/null
+++ b/install
@@ -0,0 +1,12 @@
+post_install() {
+adduser --system --disabled-login --disabled-password --home /var/hqplayer/home --ingroup audio hqplayer
+usermod -d /var/hqplayer/home hqplayer
+chown -R hqplayer:root /etc/hqplayer
+chown -R hqplayer:root /var/hqplayer/home
+}
+
+post_remove() {
+userdel -r hqplayer
+rm -rf /var/hqplayer
+rm -rf /etc/hqplayer
+}