~ubuntu-branches/ubuntu/raring/quantum/raring-proposed

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
28
29
30
31
#!/bin/sh

set -e 

if [ "$1" = "configure" ]
then
	if ! getent group quantum > /dev/null 2>&1
	then
		addgroup --system quantum >/dev/null
	fi
	if ! getent passwd quantum > /dev/null 2>&1
	then
		adduser --system --home /var/lib/quantum --ingroup quantum --no-create-home --shell /bin/false quantum
	fi
	chown -R quantum:quantum /var/lib/quantum/

	chown -R quantum:adm /var/log/quantum/ 
	chmod 0750 /var/log/quantum/

    chown -R root:quantum /etc/quantum/
    chmod 0750 /etc/quantum/
	chown root:root /etc/quantum/rootwrap.conf
	chown -R root:root /etc/quantum/rootwrap.d
	chmod 0755 /etc/quantum/rootwrap.d

	if [ -f /etc/sudoers.d/quantum_sudoers ] ; then
		chmod 0440 /etc/sudoers.d/quantum_sudoers
	fi
fi

#DEBHELPER#