summaryrefslogtreecommitdiffstats
path: root/abs/extra/tigervnc/tiger.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-25 04:11:24 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-25 04:11:24 (GMT)
commitc5486fd51cc93df1a4bc4826cc19b6f766260979 (patch)
tree61a75ae6a5b93ae03e6a9c2d2838b9c8387c47de /abs/extra/tigervnc/tiger.install
parent3a594ad38241da5087d34584ba70ca06e7be97c4 (diff)
downloadlinhes_pkgbuild-c5486fd51cc93df1a4bc4826cc19b6f766260979.zip
linhes_pkgbuild-c5486fd51cc93df1a4bc4826cc19b6f766260979.tar.gz
linhes_pkgbuild-c5486fd51cc93df1a4bc4826cc19b6f766260979.tar.bz2
tigervnc: replacing tightvnc with tigervnc
Diffstat (limited to 'abs/extra/tigervnc/tiger.install')
-rw-r--r--abs/extra/tigervnc/tiger.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/abs/extra/tigervnc/tiger.install b/abs/extra/tigervnc/tiger.install
new file mode 100644
index 0000000..5aa9395
--- /dev/null
+++ b/abs/extra/tigervnc/tiger.install
@@ -0,0 +1,20 @@
+post_install(){
+ groupadd -g 78 vncsvc &>/dev/null
+ useradd -u 78 -m -g vncsvc -d /home/vncsvc -s /bin/bash vncsvc &>/dev/null
+ chown -R vncsvc:vncsvc /home/vncsvc &>/dev/null
+}
+
+post_upgrade(){
+ getent group vncsvc >/dev/null 2>&1 || groupadd -g 78 vncsvc &>/dev/null
+ getent passwd vncsvc >/dev/null 2>&1 || useradd -u 78 -g vncsvc -m -d /home/vncsvc -s /bin/bash vncsvc &>/dev/null
+}
+
+post_remove(){
+ if getent passwd vncsvc >/dev/null 2>&1; then
+ userdel vncsvc
+ fi
+ if getent group vncsvc >/dev/null 2>&1; then
+ groupdel vncsvc
+ fi
+}
+