File: glance-store-common.postinst

package info (click to toggle)
python-glance-store 4.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,804 kB
  • sloc: python: 17,455; sh: 41; makefile: 34
file content (22 lines) | stat: -rwxr-xr-x 390 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

if [ "$1" = "configure" ] ; then
	if [ -f /etc/glance/rootwrap.conf ] ; then
		chown root:root /etc/glance/rootwrap.conf
	fi

	if [ -d /etc/glance/rootwrap.d ] ; then
		chown -R root:root /etc/glance/rootwrap.d
		chmod 0755 /etc/glance/rootwrap.d
	fi

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

#DEBHELPER#

exit 0