File: postinst

package info (click to toggle)
orthanc-python 6.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,172 kB
  • sloc: cpp: 8,299; python: 786; sh: 62; makefile: 33
file content (23 lines) | stat: -rwxr-xr-x 476 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e

case $1 in
    configure)
        # Configure the permissions of the configuration files
        chown orthanc:orthanc /etc/orthanc/python.json
        chown orthanc:orthanc /etc/orthanc/sample.py
        chmod 0664 /etc/orthanc/python.json
        chmod 0664 /etc/orthanc/sample.py
	;;

    abort-upgrade|abort-remove|abort-deconfigure)
	;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac

#DEBHELPER#