summarylogtreecommitdiffstats
path: root/unifi.install
diff options
context:
space:
mode:
authorfrederik2015-06-09 14:21:38 +0200
committerfrederik2015-06-09 14:21:38 +0200
commitc5e103c64b922cda4c2db937c777c3c288640ec5 (patch)
treec45c2070484fa8348f951e63451c1cf0dad77cfe /unifi.install
downloadaur-c5e103c64b922cda4c2db937c777c3c288640ec5.tar.gz
Initial commit: move from aur to aur4
Diffstat (limited to 'unifi.install')
-rw-r--r--unifi.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/unifi.install b/unifi.install
new file mode 100644
index 000000000000..a286c57b6b8e
--- /dev/null
+++ b/unifi.install
@@ -0,0 +1,16 @@
+# arg 1: the new package version
+post_install() {
+ printf "==> To use the controller:\n"
+ printf " sudo systemctl start unifi\n"
+ printf " Open up https://localhost:8443\n"
+ getent group unifi >/dev/null || groupadd -g 113 unifi
+ getent passwd unifi >/dev/null || useradd -M -d /opt/unifi -u 113 -g 113 unifi
+ :
+}
+
+# arg 1: the old package version
+post_remove() {
+ userdel -f unifi &>/dev/null
+ groupdel unifi &>/dev/null
+ :
+}