File: postinst

package info (click to toggle)
roundup 1.2.1-10%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,764 kB
  • ctags: 3,756
  • sloc: python: 30,296; sh: 1,497; perl: 23; makefile: 22
file content (26 lines) | stat: -rw-r--r-- 582 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
#!/bin/sh
set -e

if [ -d /var/service ]; then
	if [ -e /etc/default/roundup ]; then
		. /etc/default/roundup
	fi
	if [ $USERUNIT -eq 0 ]; then
		touch /etc/roundup/service/down
	fi
	ln -s /etc/roundup/service /var/service/roundup
fi

# manually "written" in order to cope with #386970

if which pycentral >/dev/null 2>&1; then
	pycentral pkginstall roundup
fi
if [ -x "/etc/init.d/roundup" ]; then
	update-rc.d roundup defaults >/dev/null
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d roundup start || exit $?
	else
		/etc/init.d/roundup start || exit $?
	fi
fi