summarylogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
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 000000000000..524c051aed48
--- /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
+}