File: postinst

package info (click to toggle)
distributed-net-pproxy 277b-1
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 312 kB
  • sloc: sh: 140; perl: 117; makefile: 51
file content (27 lines) | stat: -rw-r--r-- 666 bytes parent folder | download
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
#!/bin/sh -e

if ! [ -d "/var/log/distributed-net-pproxy" ]; then
	mkdir -p /var/log/distributed-net-pproxy
	chown nobody.nogroup /var/log/distributed-net-pproxy
fi

echo "It is now time to configure the distributed.net personal proxy."
echo ""

cd /var/lib/distributed-net-pproxy

if ! [ -d /etc/distributed-net-pproxy ]; then
	mkdir -p /etc/distributed-net-pproxy
fi

if ! [ -L distributed-net-pproxy.ini ]; then 
	if [ -f distributed-net-pproxy.ini ]; then
		mv distributed-net-pproxy.ini /etc/distributed-net-pproxy
	fi

	ln -s /etc/distributed-net-pproxy/distributed-net-pproxy.ini
fi

/usr/lib/distributed-net-pproxy/distributed-net-pproxy-config

#DEBHELPER#