From 99d0ec7ebad2eda5f3a03098962e3b250e3bef4c Mon Sep 17 00:00:00 2001 From: root Date: Tue, 16 Oct 2012 00:33:10 -0700 Subject: Tue Oct 16 00:33:08 PDT 2012 --- community-staging/neatx/neatx.install | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 community-staging/neatx/neatx.install (limited to 'community-staging/neatx/neatx.install') diff --git a/community-staging/neatx/neatx.install b/community-staging/neatx/neatx.install new file mode 100644 index 000000000..89356878c --- /dev/null +++ b/community-staging/neatx/neatx.install @@ -0,0 +1,18 @@ +post_install() { + useradd -d /opt/NX/home/nx -s /usr/lib/neatx/nxserver-login-wrapper nx &> /dev/null + mkdir -p ~nx/.ssh + cp /usr/share/neatx/authorized_keys.nomachine ~nx/.ssh/authorized_keys + chmod 600 ~nx/.ssh/authorized_keys + chown -R nx ~nx + post_remove +} + +pre_remove() { + userdel nx > /dev/null 2>&1 + rm -rf ~nx +} + +post_remove() { + sed -e '/\/opt\/NX\/lib/d' -i etc/ld.so.conf + ldconfig +} -- cgit v1.2.3-54-g00ecf