summaryrefslogtreecommitdiff
path: root/extra/freenx/freenx.install
blob: 93a28656fa976cdf8240ab05822718a898da8129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# arg 1:  the new package version
post_install() {
# setting up freenx
echo 'Generating keys ...'
/opt/NX/bin/nxsetup --install --uid 85 --gid 85  2>&1 >/dev/null
/bin/cat <<THEEND
ATTENTION FREENX:
For correct setup please take a look at the wiki:
http://wiki.archlinux.org/index.php/FreeNX
THEEND
}

post_upgrade() {
# setting up freenx
echo 'Rerunning nxsetup ...'
/opt/NX/bin/nxsetup --install --uid 85 --gid 85 2>&1 >/dev/null
/bin/cat <<THEEND
ATTENTION FREENX:
For correct setup please take a look at the wiki:
http://wiki.archlinux.org/index.php/FreeNX
THEEND
}
# arg 1:  the old package version
pre_remove() {
  /opt/NX/bin/nxsetup --uninstall --purge 2>&1 >/dev/null
  usr/sbin/groupdel nx &>/dev/null
}