diff options
author | Bartłomiej Piotrowski | 2018-01-06 22:02:38 +0100 |
---|---|---|
committer | Bartłomiej Piotrowski | 2018-01-06 22:02:38 +0100 |
commit | 33a4805b4dfc4981a8190c1bc711e448d3b10d9c (patch) | |
tree | b57ba8d1bd832fcd29289efec79c325563500bcd /neatx.install | |
download | aur-neatx.tar.gz |
Import from official repositories
Diffstat (limited to 'neatx.install')
-rw-r--r-- | neatx.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/neatx.install b/neatx.install new file mode 100644 index 000000000000..20f6d589b225 --- /dev/null +++ b/neatx.install @@ -0,0 +1,17 @@ +post_install() { + useradd -r -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() { + rm -rf ~nx +} + +post_remove() { + sed -e '/\/opt\/NX\/lib/d' -i etc/ld.so.conf + ldconfig +} |