File: postinst

package info (click to toggle)
distributed-net-pproxy 280-2
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 688 kB
  • ctags: 2
  • sloc: sh: 138; perl: 116; makefile: 50
file content (24 lines) | stat: -rwxr-xr-x 586 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
#!/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

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#