blob: 5e9e1a64cd3daaf489f0159f854f5bf2363ad2b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}
|