diff options
author | Serge K | 2022-11-10 17:23:39 +0700 |
---|---|---|
committer | Serge K | 2022-11-10 17:23:39 +0700 |
commit | 04d392af1960cde7fd52b04b7fd687870885a7d7 (patch) | |
tree | 043a4c5af0db2ebd2807c29a67224511f6391c58 /prey-node-client.install | |
parent | b05c1502cd76d63bbd129462dda515fe93b3ef9c (diff) | |
download | aur-04d392af1960cde7fd52b04b7fd687870885a7d7.tar.gz |
refactor: prey-node-client cleanup
Diffstat (limited to 'prey-node-client.install')
-rw-r--r-- | prey-node-client.install | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/prey-node-client.install b/prey-node-client.install index da628748439b..bb83c0cc8b16 100644 --- a/prey-node-client.install +++ b/prey-node-client.install @@ -1,22 +1,14 @@ 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_project config gui\"" - echo - 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 "$@"' + /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-tracker config gui\"" } 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" + /opt/prey-node-client/bin/prey config hooks pre_uninstall + userdel prey } |