From 5928610927ccf6b39d56abebb9f288f09c3fbdbd Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Tue, 20 Aug 2013 17:19:32 -0300 Subject: CJDNS --- pcr/cjdns-git/cjdns-git.install | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pcr/cjdns-git/cjdns-git.install (limited to 'pcr/cjdns-git/cjdns-git.install') diff --git a/pcr/cjdns-git/cjdns-git.install b/pcr/cjdns-git/cjdns-git.install new file mode 100644 index 000000000..5e9e1a64c --- /dev/null +++ b/pcr/cjdns-git/cjdns-git.install @@ -0,0 +1,21 @@ +post_install() { + if [ $(ps -A | ps -A | grep -cE "systemd$") = 1 ]; then + systemctl --system daemon-reload + fi + + if [ -z $(type -P python2) ]; then + echo "You don't currently have python2 installed. It isn't required to use cjdns, but some scripts have been included in the package that won't function without" + fi + + echo "By default, the cjdns configuration file is expected to be located @ /etc/cjdroute.conf" +} + +post_upgrade() { + if [ $(ps -A | ps -A | grep -cE "systemd$") = 1 ]; then + systemctl --system daemon-reload + fi + + if [ $(grep -c cjdns /etc/passwd) = 1 ]; then + echo "The user 'cjdns' has been detected on your system but is no longer required by this package; if it was installed by a previous version of this package, it can now be safely deleted." + fi +} -- cgit v1.2.3-54-g00ecf