File: python-oslo.policy.postinst

package info (click to toggle)
python-oslo.policy 1.38.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 672 kB
  • sloc: python: 4,181; sh: 54; makefile: 26
file content (15 lines) | stat: -rwxr-xr-x 741 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

if [ "$1" = "configure" ] ; then
	update-alternatives --install /usr/bin/oslopolicy-checker oslopolicy-checker /usr/bin/python2-oslopolicy-checker 300
	update-alternatives --install /usr/bin/oslopolicy-list-redundant oslopolicy-list-redundant /usr/bin/python2-oslopolicy-list-redundant 300
	update-alternatives --install /usr/bin/oslopolicy-policy-generator oslopolicy-policy-generator /usr/bin/python2-oslopolicy-policy-generator 300
	update-alternatives --install /usr/bin/oslopolicy-sample-generator oslopolicy-sample-generator /usr/bin/python2-oslopolicy-sample-generator 300
	update-alternatives --install /usr/bin/oslopolicy-checker oslopolicy-checker /usr/bin/python2-oslopolicy-checker 300
fi

#DEBHELPER#

exit 0