summarylogtreecommitdiffstats
path: root/prey-node-client.install
diff options
context:
space:
mode:
authorxpt2015-06-10 23:27:57 -0300
committerxpt2015-06-10 23:27:57 -0300
commit65c3341d64d28140faea5531689443c704e364f0 (patch)
treeaf6d21ab2e35504d6d4e07637b2f87bc850ba2a5 /prey-node-client.install
downloadaur-65c3341d64d28140faea5531689443c704e364f0.tar.gz
Initial import
Diffstat (limited to 'prey-node-client.install')
-rw-r--r--prey-node-client.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/prey-node-client.install b/prey-node-client.install
new file mode 100644
index 000000000000..15900caa2de1
--- /dev/null
+++ b/prey-node-client.install
@@ -0,0 +1,22 @@
+post_install() {
+ /opt/prey-node-client/bin/prey config hooks post_install >/dev/null
+ gpasswd -a prey video >/dev/null
+
+ echo
+ echo "You should now configure prey by either"
+ echo "*) editing /etc/prey/prey.conf, or"
+ echo "*) running \"prey config gui\""
+
+ echo "Prey use Python2, you need to see"
+ echo "https://wiki.archlinux.org/index.php/Python#Dealing_with_version_problem_in_build_scripts"
+ echo "Make the file /usr/local/bin/python, whith:"
+ echo -e '#!/bin/bash\nscript=$(readlink -f -- "$1")\ncase "$script" in (/opt/prey-node-client/*|/other/path)\nexec python2 "$@"\n;;\nesac\n\n\nexec python3 "$@"'
+
+}
+
+pre_remove() {
+ /opt/prey-node-client/bin/prey config hooks pre_uninstall
+ userdel prey
+ echo "if you created python script you can remove /usr/local/bin/python, please see"
+ echo "https://wiki.archlinux.org/index.php/Python#Dealing_with_version_problem_in_build_scripts"
+}