File: postinst

package info (click to toggle)
elida 0.4.0
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 80 kB
  • sloc: sh: 409; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 512 bytes parent folder | download
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

. /usr/share/debconf/confmodule

# Recover from incorrect init.d script runlevel settings in
# version 0.4 and earlier
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "0.4" ; then
    update-rc.d -f elida remove
fi

if [ "$1" = "configure" ]; then
    update-rc.d elida start 20 2 3 4 5 . stop 20 0 1 6 . >/dev/null
#   if [ ! -d /usr/src/elida ]; then
#       mkdir /usr/src/elida
#       chmod 2775 /usr/src/elida
#       chgrp src /usr/src/elida
#   fi
fi

#DEBHELPER#

exit 0