File: emboss-explorer.postinst

package info (click to toggle)
emboss-explorer 2.2.0-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 368 kB
  • sloc: perl: 1,765; sh: 118; makefile: 23
file content (24 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

set -e

case "$1" in
    configure)
        if [ ! -d /var/lib/emboss-explorer/output ] ; then
            mkdir -p /var/lib/emboss-explorer/output
        fi
        
        chown -R www-data:www-data /var/lib/emboss-explorer/output
        chmod -R 755 /var/lib/emboss-explorer/output
    ;;

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

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

#DEBHELPER#